Fixed Why aren't ◎ܫ◎ and ☺ valid JavaScript variable names? #dev #it #asnwer
Fixed Why aren't ◎ܫ◎ and ☺ valid JavaScript variable names? #dev #it #asnwer
Why aren’t ◎ܫ◎ and ☺ valid JavaScript variable names?
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(ктоείναι草泥马 +…
View On WordPress













