🔰escape sequence

JSvalueprimitiveString ⟩ escape sequence

'\x4A'       // 'J'     ('\xXX')
'\u222B'     // '∫'     ('\uXXXX')
'\u{1F639}'  // '😹'    ('\u{0 ~ 10FFFF}'}
escape sequencecode 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