Hacker News new | ask | show | jobs
by tylerhou 2964 days ago
JavaScript identifiers can be emoji, I think. This is also valid JavaScript (you can test it by pasting it into your console):

  let ಠ_ಠ = "Hello, world!";
  alert(ಠ_ಠ);
Some more examples: https://mathiasbynens.be/notes/javascript-identifiers#exampl...

d3.js used to also use Unicode identifiers:

https://web.archive.org/web/20140802202152/https://github.co... https://web.archive.org/web/20140802202152/https://github.co...