mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-29 13:52:22 +00:00
edit let
This commit is contained in:
parent
89fc7766fb
commit
6b4181d329
@ -156,13 +156,13 @@ let不允许在相同作用域内,重复声明同一个变量。
|
||||
|
||||
```javascript
|
||||
// 报错
|
||||
{
|
||||
function () {
|
||||
let a = 10;
|
||||
var a = 1;
|
||||
}
|
||||
|
||||
// 报错
|
||||
{
|
||||
function () {
|
||||
let a = 10;
|
||||
let a = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user