Node.js - Debugging and Profiling
Identify the error in this Node.js code snippet:
console.time('process');
// some code
console.timeEnd();console.time('process');
// some code
console.timeEnd();console.time() starts a timer with a label. console.timeEnd() must be called with the same label to stop and print the timer.console.timeEnd() is called without the label 'process', so it will throw an error or not work as expected.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions