Update article.md

This commit is contained in:
joaquinelio 2022-10-05 11:57:18 -03:00 committed by GitHub
parent dca45f773b
commit dc7a157d8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ JavaScript allows us to insert a character into a string by specifying its hexad
- `\xXX`
`XX` must be two hexadecimal digits with a value between `00` and `FF`, then it's a character whose Unicode code is `XX`.
`XX` must be two hexadecimal digits with a value between `00` and `FF`, then `\xXX` is the character whose Unicode code is `XX`.
Because the `\xXX` notation supports only two digits, it can be used only for the first 256 Unicode characters.
@ -23,7 +23,7 @@ JavaScript allows us to insert a character into a string by specifying its hexad
```
- `\uXXXX`
`XXXX` must be exactly 4 hex digits with the value between `0000` and `FFFF`, then `\uXXXX` is a character whose Unicode code is `XXXX`.
`XXXX` must be exactly 4 hex digits with the value between `0000` and `FFFF`, then `\uXXXX` is the character whose Unicode code is `XXXX`.
Characters with Unicode values greater than `U+FFFF` can also be represented with this notation, but in this case, we will need to use a so called surrogate pair (we will talk about surrogate pairs later in this chapter).