Skip to content

Commit bde94c1

Browse files
committed
Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages
2 parents 9a66ab3 + 26b64fd commit bde94c1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/let.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ ES6允许块级作用域的任意嵌套。
240240

241241
```javascript
242242
{{{{{let insane = 'Hello World'}}}}};
243-
insane // "Hello World"
244243
```
245244

246245
上面代码使用了一个五层的块级作用域。外层作用域无法读取内层作用域的变量。
@@ -328,9 +327,6 @@ PI // 3.1415
328327

329328
PI = 3;
330329
PI // 3.1415
331-
332-
const PI = 3.1;
333-
PI // 3.1415
334330
```
335331

336332
上面代码表明改变常量的值是不起作用的。需要注意的是,对常量重新赋值不会报错,只会默默地失败。

0 commit comments

Comments
 (0)