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:
86
86
87
87
``` js run
88
88
alert ( " \u00A9 " ); // ©
89
- alert ( " \u{20331} " ); // 佫, a rare chinese hieroglyph (long unicode)
89
+ alert ( " \u{20331} " ); // 佫, a rare Chinese hieroglyph (long unicode)
90
90
alert ( " \u{1F60D} " ); // 😍, a smiling face symbol (another long unicode)
91
91
```
92
92
@@ -571,7 +571,7 @@ The length of such symbols is `2`:
571
571
``` js run
572
572
alert ( ' 𝒳' .length ); // 2, MATHEMATICAL SCRIPT CAPITAL X
573
573
alert ( ' 😂' .length ); // 2, FACE WITH TEARS OF JOY
574
- alert ( ' 𩷶' .length ); // 2, a rare chinese hieroglyph
574
+ alert ( ' 𩷶' .length ); // 2, a rare Chinese hieroglyph
575
575
```
576
576
577
577
Note 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