Skip to content

Commit 4be6d6c

Browse files
authored
[strings] 2 code units are 4 bytes
1 parent 5e9eca3 commit 4be6d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/03-string/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ There are other, less common "special" characters as well. Here's the list:
8080
|`\r`|Carriage return|
8181
|`\t`|Tab|
8282
|`\uNNNN`|A unicode symbol with the hex code `NNNN`, for instance `\u00A9` -- is a unicode for the copyright symbol `©`. It must be exactly 4 hex digits. |
83-
|`\u{NNNNNNNN}`|Some rare characters are encoded with two unicode symbols, taking up to 4 bytes. This long unicode requires braces around it.|
83+
|`\u{NNNNNNNN}`|Some rare characters are encoded with two unicode symbols, taking 4 bytes. This long unicode requires braces around it.|
8484

8585
Examples with unicode:
8686

0 commit comments

Comments
 (0)