I noticed that in Internet Explorer (but, unfortunately, not in the other browsers I tested), you can use some Unicode variable names. This made my day, and I was absolutely delighted that I could write fun Unicode-laden code like this:
var ктоείναι草泥马 = "You dirty horse.",
happy☺n☺mat☺p☺eia = ":)Yay!",
ಠ_ಠ = "emoticon";
alert(ктоείναι草泥马 + happy☺n☺mat☺p☺eia + ಠ_ಠ);
For some reason, though, ◎ܫ◎
, ♨_♨
and ☺
are not valid variable names.
Why do ಠ_ಠ
and 草泥马
work, but not ◎ܫ◎
, ♨_♨
or ☺
?