single-code-unit character.
JS ⟩ value ⟩ primitive ⟩ String ⟩ Unicode ⟩ encoding ⟩ UTF-16 ⟩ scalar
code points in the basic multilingual plane (single-code-unit characters).
0xD800 ~ 0xDFFFare reserved for surrogate pairs❗
0xD800
0xDFFF
Eloquent JavaScript ⟩ Strings & Character Codesarrow-up-right
UTF-16 characters, code points, grapheme clustersarrow-up-right
String.prototype ⟩
.charCodeAt()arrow-up-right
.codePointAt()arrow-up-right
Stringarrow-up-right ⟩
.fromCodePoint()arrow-up-right
.fromCharCode()arrow-up-right
Last updated 3 years ago