Back to programming Quizzes

JavaScript Quiz (Advanced – Extreme Hard)

This JavaScript Extreme Hard Quiz is crafted for senior and expert-level developers. It focuses on deep JavaScript internals such as execution context, closures, prototypes, event loop, memory management, async behavior, edge cases, and real-world interview scenarios.

15
Questions
~7
Minutes
7
Min Limit

Try a few sample questions

The question bank contains 46 questions. Your scored round uses up to 15 different questions. These samples are excluded from your round; try each one before opening its answer and explanation.

1. What creates a new execution context in JavaScript?

  1. Block scope
  2. Function invocation
  3. Variable declaration
  4. Object creation
Reveal sample answer and explanation

Answer: Function invocation

Each function invocation creates a new execution context.

2. Which statement about closures is correct?

  1. They copy variables
  2. They capture lexical scope
  3. They work only with var
  4. They destroy memory automatically
Reveal sample answer and explanation

Answer: They capture lexical scope

Closures retain access to their lexical scope.

3. What is the output type of typeof null?

  1. null
  2. undefined
  3. object
  4. number
Reveal sample answer and explanation

Answer: object

This is a historical JavaScript bug.