This commit is contained in:
徐迪行
2013-10-14 12:44:47 +08:00
parent c4ebea97b8
commit 5c30b95cd4

View File

@@ -521,18 +521,17 @@
var named = function superPower() {
console.log('Flying');
};
}
// the same is true when the function name
// is the same as the variable name.
function example() {
console.log(named); // => undefined
named(); // => TypeError named is not a function
// the same is true when the function name
// is the same as the variable name.
function example() {
console.log(named); // => undefined
named(); // => TypeError named is not a function
var named = function named() {
console.log('named');
};
var named = function named() {
console.log('named');
}
}
```