In JavaScript I can do this:
foo = \"\\u2669\" // 1/4 note
But I can\'t do this
foo = \"\\u1D15D\" // full note -five hex digi
Nowadays, you can simply use String.fromCodePoint(), as documented in MDN. For instance:
String.fromCodePoint()
> String.fromCodePoint(0x1f0a1) "