Skip to content

Commit 56b1424

Browse files
committed
Merge pull request DrkSephy#76 from cambraca/patch-1
Updating "double quote" escaping example.
2 parents a35c350 + 5466a1f commit 56b1424

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ var text = "This string contains \"double quotes\" which are escaped.";
254254
```
255255

256256
```javascript
257-
let text = `This string contains "double quotes" which are escaped.`;
257+
let text = `This string contains "double quotes" which don't need to be escaped anymore.`;
258258
```
259259

260260
**Template Literals** also support interpolation, which makes the task of

README_zhCn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ var text = "This string contains \"double quotes\" which are escaped.";
236236
```
237237

238238
```javascript
239-
let text = `This string contains "double quotes" which are escaped.`;
239+
let text = `This string contains "double quotes" which don't need to be escaped anymore.`;
240240
```
241241

242242
**字符串模板字面量** 还支持直接插入变量,可以实现字符串与变量的直接连接输出。

0 commit comments

Comments
 (0)