1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-29 13:52:22 +00:00
This commit is contained in:
Ruan Yifeng 2015-07-17 18:59:56 +08:00
parent 89fc7766fb
commit 6b4181d329

View File

@ -156,13 +156,13 @@ let不允许在相同作用域内重复声明同一个变量。
```javascript
// 报错
{
function () {
let a = 10;
var a = 1;
}
// 报错
{
function () {
let a = 10;
let a = 1;
}