We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52386d1 commit b744b68Copy full SHA for b744b68
docs/let.md
@@ -11,7 +11,7 @@ ES6新增了let命令,用来声明变量。它的用法类似于var,但是
11
var b = 1;
12
}
13
14
-a // ReferenceError: a is not defined.
+a // ReferenceError: a is not defined.
15
b //1
16
17
```
@@ -102,10 +102,10 @@ function f1() {
102
```javascript
103
104
// IIFE写法
105
-(function () {
+(function () {
106
var tmp = ...;
107
...
108
-}());
+}());
109
110
// 块级作用域写法
111
{
@@ -115,7 +115,7 @@ function f1() {
115
116
117
118
-另外,ES6也规定,函数的作用域为其所在的块级作用域。
+另外,ES6也规定,函数本身的作用域,在其所在的块级作用域之内。
119
120
121
0 commit comments