🔰escape sequence

JSvalueprimitiveString ⟩ escape sequence

escape sequence
code points

\xXX

(XX = 00~FF, 2 hex digits)

(Basic Latin and Latin-1 Supplement)

(= ISO-8859-1)

U+0000 ~ U+00FF

\uXXXX

(XXXX= 0000 ~ FFFF, 4 hex digits)

(Basic Multilingual Plane)

U+0000 ~ U+FFFF

\u{X}\u{XXXXXX}

(XXXXXXX, 1~6 hex digits)

(the entirety of Unicode)

U+0000 ~ U+10FFFF

Last updated

Was this helpful?