Node.js - Timers and Scheduling
What is wrong with this code?
setImmediate(console.log('Test'));
process.nextTick(() => console.log('Tick'));setImmediate(console.log('Test'));
process.nextTick(() => console.log('Tick'));console.log('Test') is called immediately, passing undefined to setImmediate instead of a function.process.nextTick is correctly passed a function, so no issue there.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions