It:
var foo = {
🐶 : true
};
Gives me an illegal character error in Firefox and Chrome. Nonetheless,
var foo = {
'🐶' : true
};
Works great. Why?
(You can also answer for a wider Unicode character set, but I really want to learn more about Dog)
source
share