What does the following code output? const a = [1, 2, 3]; const b = [1, 2, 3]; console.log(a == b, a === b); JavaScript DeveloperMedium Try Now
What is the output of: console.log(+’3′, +true, +null, +undefined)? JavaScript DeveloperMedium Try Now
What does the following implement? function pipe(…fns) { return x => fns.reduce((v, f) => f(v), x); } JavaScript DeveloperMedium Try Now
Which of the following correctly uses a getter in a JavaScript object literal? JavaScript DeveloperMedium Try Now
What does the following code output? for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i), 0); } JavaScript DeveloperMedium Try Now
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