Merge pull request #86 from zhaoda/patch-1

Update let.md
This commit is contained in:
Ruan YiFeng
2015-09-21 07:28:01 +08:00
+1 -1
View File
@@ -205,7 +205,7 @@ function f(){
}
}
f() // 没有输出
f() // undefined
```
上面代码中,函数f执行后没有任何输出,原因在于变量提升,导致内层的tmp变量覆盖了外层的tmp变量。