mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +00:00
commit
f5877134e1
@ -313,7 +313,7 @@ foo() // ReferenceError: x is not defined
|
|||||||
```javascript
|
```javascript
|
||||||
let foo = 'outer';
|
let foo = 'outer';
|
||||||
|
|
||||||
function bar(func = x => foo) {
|
function bar(func = () => foo) {
|
||||||
let foo = 'inner';
|
let foo = 'inner';
|
||||||
console.log(func());
|
console.log(func());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user