mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-27 20:32:21 +00:00
SyntaxError
Missing function name
This commit is contained in:
parent
9736f7b1ba
commit
ce8879f2ac
@ -185,13 +185,13 @@ ES6 规定暂时性死区和`let`、`const`语句不出现变量提升,主要
|
||||
|
||||
```javascript
|
||||
// 报错
|
||||
function () {
|
||||
function func() {
|
||||
let a = 10;
|
||||
var a = 1;
|
||||
}
|
||||
|
||||
// 报错
|
||||
function () {
|
||||
function func() {
|
||||
let a = 10;
|
||||
let a = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user