commit
27a6d60593
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ Examples with unicode:
|
||||||
|
|
||||||
```js run
|
```js run
|
||||||
alert( "\u00A9" ); // ©
|
alert( "\u00A9" ); // ©
|
||||||
alert( "\u{20331}" ); // 佫, a rare chinese hieroglyph (long unicode)
|
alert( "\u{20331}" ); // 佫, a rare Chinese hieroglyph (long unicode)
|
||||||
alert( "\u{1F60D}" ); // 😍, a smiling face symbol (another long unicode)
|
alert( "\u{1F60D}" ); // 😍, a smiling face symbol (another long unicode)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -571,7 +571,7 @@ The length of such symbols is `2`:
|
||||||
```js run
|
```js run
|
||||||
alert( '𝒳'.length ); // 2, MATHEMATICAL SCRIPT CAPITAL X
|
alert( '𝒳'.length ); // 2, MATHEMATICAL SCRIPT CAPITAL X
|
||||||
alert( '😂'.length ); // 2, FACE WITH TEARS OF JOY
|
alert( '😂'.length ); // 2, FACE WITH TEARS OF JOY
|
||||||
alert( '𩷶'.length ); // 2, a rare chinese hieroglyph
|
alert( '𩷶'.length ); // 2, a rare Chinese hieroglyph
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that surrogate pairs did not exist at the time when JavaScript was created, and thus are not correctly processed by the language!
|
Note that surrogate pairs did not exist at the time when JavaScript was created, and thus are not correctly processed by the language!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue