JavaScript Challenges
Master the quirks of JavaScript (ES6+), from closures and hoisting to async/await and engine internals. These daily shots are designed for developers preparing for top-tier technical interviews.
Spot the bug: This should double every number in the array.
→
What does this output?
→
What gets logged?
→
What does this print?
→
What is the output?
→
What gets logged?
→
What does this output?
→
What does this print?
→
What does g.next().value print twice?
→
How do you get the number of entries in a Map?
→
What does this evaluate to?
→
What is arr.flat().length?
→
What gets logged?
→
What does this output?
→
What is the output?
→
What is the output?
→
What is the output?
→
What gets logged?
→
Which of these is truthy in JavaScript?
→
What is the output of both lines?
→
What is the type of NaN in JavaScript?
→
What is the output?
→
What does this print?
→
What gets logged?
→
What does this output?
→
What gets logged to the console?
→
What does this output?
→
What does this output?
→