- Describe what it means for code to be asynchronous
- Write code that is delayed a variable number of seconds
-
In what order will the following
console.log
statements be executed? Why?console.log('A') setTimeout(function () { console.log('B') }, 500) console.log('C')
Your answer...
-
In what order will the following
console.log
statements be executed? Why?console.log('A') setTimeout(function () { console.log('B') }, 0) console.log('C')
Your answer...
-
How can you set a function to run every X number of milliseconds? How can you stop it from running?
Your answer...