Skip to content

Instantly share code, notes, and snippets.

@zolotyh
Created September 4, 2019 13:40
Show Gist options
  • Save zolotyh/40b7bf3db04cb94605df7655e599f165 to your computer and use it in GitHub Desktop.
Save zolotyh/40b7bf3db04cb94605df7655e599f165 to your computer and use it in GitHub Desktop.
В каком порядке выведутся цифры и почему?
document.querySelector('body').addEventListener('click', () => console.log(1));
setTimeout(() => console.log(2), 0);
for (var i = 0; i < 1000000000000; i++) {/*code*/}
console.log(3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment