You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/05-data-types/03-string/article.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -516,11 +516,11 @@ As we already mentioned, JavaScript strings are based on [Unicode](https://en.wi
516
516
517
517
Each character is represented by a byte sequence of 1-4 bytes.
518
518
519
-
JavaScript allows us to specify a character not only by directly including it into a stirng, but also by its hexadimal Unicode code using these three notations:
519
+
JavaScript allows us to specify a character not only by directly including it into a stirng, but also by its hexadecimal Unicode code using these three notations:
520
520
521
521
-`\xXX` -- a character whose Unicode code point is `U+00XX`.
522
522
523
-
`XX` is always two hexadecimal digits with value between `00` and `FF`, so `\xXX` notation can be used only for the first 256 Unicode characters (including all 128 ASCII characters).
523
+
`XX` is two hexadecimal digits with value between `00` and `FF`, so `\xXX` notation can be used only for the first 256 Unicode characters (including all 128 ASCII characters).
524
524
525
525
These first 256 characters include latin alphabet, most basic syntax characters and some others. For example, `"\x7A"` is the same as `"z"` (Unicode `U+007A`).
526
526
-`\uXXXX` -- a character whose Unicode code point is `U+XXXX` (a character with the hex code `XXXX` in UTF-16 encoding).
0 commit comments