Skip to content

Instantly share code, notes, and snippets.

@nook-scheel
Last active July 20, 2017 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nook-scheel/b8d013b2ad18aad7396da1ed954c5b72 to your computer and use it in GitHub Desktop.
Save nook-scheel/b8d013b2ad18aad7396da1ed954c5b72 to your computer and use it in GitHub Desktop.
ЭТОТ КОДт НЕ ИСПОЛЬЗУЕТСЯ В PRODUCTION !!!@#$%^&*()(*&^%$#$%^&*!!!
var foo = 1;
(function () {
if (!foo) {
var foo = 2;
}
console.log(foo);
})();
var foo = 1;
(function () {
foo = 2;
return;
function foo() {}
})();
console.log(foo);
(function() {
console.log(1);
setTimeout(console.log, 1000, 2);
setTimeout(console.log, 0, 3);
setTimeout(console.log, 0, 4);
console.log(5);
})();
var foo = 0;
(function () {
if (!foo) {
let foo = 1;
}
console.log(foo);
})();
(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