All challenges
Multiple ChoiceIntermediate 30s

var Hoisting

Choose the best answer for: hoisting with var
Options
  1. 1var declarations are not hoisted and stay in the dead zone
  2. 2var declarations are hoisted and initialized to undefined
  3. 3var throws a ReferenceError when read before its declaration
  4. 4var is hoisted together with its assigned value at the top

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle