Last active
January 3, 2018 10:10
-
-
Save Ibro/f0e29ec4ce42a0d17e0f0c6ce514b710 to your computer and use it in GitHub Desktop.
JavaScript Promises, road to async/await - https://codingblast.com/javascript-promise-async-await
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
setTimeout(() => { | |
console.log('inside of setTimeout()'); | |
}, 0) | |
console.log('A very long for-loop incoming..'); | |
let sum = 0; | |
console.time('forLoopTimer'); | |
for(let i = 1; i < 100000; i++) { | |
sum += i; | |
} | |
console.timeEnd('forLoopTimer'); | |
console.log('After the for-loop'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment