File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
1-js/05-data-types/03-string Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ Examples with unicode:
8686
8787``` js run
8888alert ( " \u00A9 " ); // ©
89- alert ( " \u{20331} " ); // 佫, a rare chinese hieroglyph (long unicode)
89+ alert ( " \u{20331} " ); // 佫, a rare Chinese hieroglyph (long unicode)
9090alert ( " \u{1F60D} " ); // 😍, a smiling face symbol (another long unicode)
9191```
9292
@@ -567,7 +567,7 @@ The length of such symbols is `2`:
567567``` js run
568568alert ( ' 𝒳' .length ); // 2, MATHEMATICAL SCRIPT CAPITAL X
569569alert ( ' 😂' .length ); // 2, FACE WITH TEARS OF JOY
570- alert ( ' 𩷶' .length ); // 2, a rare chinese hieroglyph
570+ alert ( ' 𩷶' .length ); // 2, a rare Chinese hieroglyph
571571```
572572
573573Note that surrogate pairs did not exist at the time when JavaScript was created, and thus are not correctly processed by the language!
You can’t perform that action at this time.
0 commit comments