Skip to content

Instantly share code, notes, and snippets.

@Ibro
Last active Jan 3, 2018
Embed
What would you like to do?
JavaScript Promises, road to async/await - https://codingblast.com/javascript-promise-async-await
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