mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
better?
This commit is contained in:
19
README.md
19
README.md
@@ -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');
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user