Last active
July 20, 2017 13:59
-
-
Save nook-scheel/b8d013b2ad18aad7396da1ed954c5b72 to your computer and use it in GitHub Desktop.
ЭТОТ КОДт НЕ ИСПОЛЬЗУЕТСЯ В PRODUCTION !!!@#$%^&*()(*&^%$#$%^&*!!!
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 foo = 1; | |
(function () { | |
if (!foo) { | |
var foo = 2; | |
} | |
console.log(foo); | |
})(); | |
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 foo = 1; | |
(function () { | |
foo = 2; | |
return; | |
function foo() {} | |
})(); | |
console.log(foo); |
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
(function() { | |
console.log(1); | |
setTimeout(console.log, 1000, 2); | |
setTimeout(console.log, 0, 3); | |
setTimeout(console.log, 0, 4); | |
console.log(5); | |
})(); |
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 foo = 0; | |
(function () { | |
if (!foo) { | |
let foo = 1; | |
} | |
console.log(foo); | |
})(); |
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
(function () { | |
setTimeout(console.log, 0, 1); | |
setImmediate(console.log, 2); | |
process.nextTick(console.log, 3); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment