File tree 1 file changed +2
-2
lines changed
1-js/05-data-types/03-string 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
@@ -567,7 +567,7 @@ The length of such symbols is `2`:
567
567
``` js run
568
568
alert ( ' 𝒳' .length ); // 2, MATHEMATICAL SCRIPT CAPITAL X
569
569
alert ( ' 😂' .length ); // 2, FACE WITH TEARS OF JOY
570
- alert ( ' 𩷶' .length ); // 2, a rare chinese hieroglyph
570
+ alert ( ' 𩷶' .length ); // 2, a rare Chinese hieroglyph
571
571
```
572
572
573
573
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