Skip to content
Alick Zhao edited this page Nov 22, 2012 · 1 revision

JavaScript

String internals

JavaScript store strings using 16-bit code units. That's UCS-2. It is not UTF-16. See the reference.

UCS-2 sucks. See also this question on SO.

>>> '𝟘'.length // 𝟘 is U+1D7D8
2

octal literal deprecated

Some references:

Clone this wiki locally