Skip to content

Commit e7d8059

Browse files
committed
Test out printing Japanese character
1 parent 42b826e commit e7d8059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manuscript/01-The-Basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The first 2^16 code points are represented as single 16-bit code units in UTF-16
1515
ECMAScript 5 kept all operations as working on 16-bit code units, meaning that you could get unexpected results from strings containing surrogate pairs. For example:
1616

1717
```js
18-
var text = "𠮷";
18+
var text = "{japanesefont}𠮷{latinfont}";
1919

2020
console.log(text.length); // 2
2121
console.log(/^.$/.test(text)); // false

0 commit comments

Comments
 (0)