1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-28 21:32:20 +00:00

Merge pull request #503 from Manzeon/patch-1

SyntaxError
This commit is contained in:
Ruan YiFeng 2017-09-26 07:18:48 +08:00 committed by GitHub
commit 833a15b0fc

View File

@ -185,13 +185,13 @@ ES6 规定暂时性死区和`let`、`const`语句不出现变量提升,主要
```javascript ```javascript
// 报错 // 报错
function () { function func() {
let a = 10; let a = 10;
var a = 1; var a = 1;
} }
// 报错 // 报错
function () { function func() {
let a = 10; let a = 10;
let a = 1; let a = 1;
} }