MCQ Single Best Answer Easy

QWhat will be the output of the following JavaScript code?
 
let a = 11;
let a = 12;
 

ID: #20285 Block scope in JavaScript 101 views
Question Info
#20285Q ID
EasyDifficulty
Block scope in JavaScriptTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 10
  • B 12
  • C Undefined
  • D Error
Correct Answer: Option D

Explanation


const a = 12;
      ^

SyntaxError: Identifier 'a' has already been declared

Share This Question

Challenge a friend or share with your study group.