Question: What will this code print to the console?

  1. a is 1
  2. a is undefined
  3. It won't print anything.
  4. a is 2

Answer: The correct answer of the above question is Option D:a is 2