Skip to content

Instantly share code, notes, and snippets.

@AllThingsSmitty
Last active August 29, 2015 14:15
Show Gist options
  • Save AllThingsSmitty/ca4d7f78298c2e688dc1 to your computer and use it in GitHub Desktop.
Save AllThingsSmitty/ca4d7f78298c2e688dc1 to your computer and use it in GitHub Desktop.
JS variables in Unicode
(function () {
'use strict';
var Λ_Λ = console.log,
ಠ_ಠ = "feeling happy",
ↂ = "look mom no hands",
iǃ = Infinity,
Θ_Θ = "hey buddy",
Ψ = function(e){throw e;};
Λ_Λ (ಠ_ಠ); // "feeling happy"
Λ_Λ (ↂ); // "look mom no hands"
Λ_Λ (++iǃ); // Infinity
Λ_Λ (Θ_Θ); // "hey buddy"
try {
Ψ("bug!");
} catch(e) {
Λ_Λ ("sorted");
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment