Which of the following correctly describes how the event loop processes microtasks vs macrotasks? JavaScript DeveloperMedium Try Now
How would you fix the classic setTimeout-in-loop closure problem to log 0, 1, 2? JavaScript DeveloperMedium Try Now
What does Array.prototype.reduce() return when called on an empty array without an initial value? JavaScript DeveloperMedium Try Now
What does the following code output? console.log(typeof class {}); JavaScript DeveloperMedium Try Now
What is the difference between Object.entries() and Object.fromEntries()? JavaScript DeveloperMedium Try Now
What does the following code output? const arr = [1, [2, [3]]]; console.log(arr.flat(1)); JavaScript DeveloperMedium Try Now
What is the output of: console.log(0.1 + 0.2 == 0.3, 0.1 + 0.2 === 0.3)? JavaScript DeveloperMedium Try Now
Which of the following best describes how JavaScript handles the ‘this’ keyword inside a regular method called without explicit context? JavaScript DeveloperMedium Try Now
What is the result of calling a generator function without using the returned iterator? JavaScript DeveloperMedium Try Now
What is the difference between shallow copy and deep copy of an object? JavaScript DeveloperMedium Try Now