This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj_a = { | |
a: 'apple', | |
one: function() { | |
console.log(this) | |
two() | |
function two() { | |
console.log(this) | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(this) | |
function one() { | |
console.log(this) | |
} | |
obj_a = { | |
a: 'apple', | |
one: function() { | |
console.log(this) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
one() | |
function one() { | |
var a = 'apple' | |
function third() { | |
var c = 'cat' | |
console.log(b) | |
} | |
two() | |
function two() { | |
var b = 'ball' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = 'apple' | |
one() | |
function one() { | |
var b = 'ball' | |
two() | |
function two() { | |
var c = 'cat' | |
console.log(a+b+c) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = 23 | |
function something() { | |
var a = 62 | |
console.log(a) | |
} | |
something() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(a) | |
// var a = 23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(a) | |
var a = 23 | |
console.log(a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testHoisting() | |
var testHoisting = function() { | |
console.log('function is not hoisted') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testHoisting() | |
function testHoisting() { | |
console.log('function is hoisted') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = 'apple' | |
one() | |
function one() { | |
var b = 'ball' | |
var c = a + b | |
two() | |
} | |
function two() { | |
var d = 'dog' | |
var e = a + d |
NewerOlder