MCQ Single Best Answer Easy

QWhat will be the output of the following JavaScript code?

const a = 11;
{
    const a = 22;
    {
        const a = 33;
        console.log(a);
    }    
}
 

ID: #20281 Block scope in JavaScript 77 views
Question Info
#20281Q ID
EasyDifficulty
Block scope in JavaScriptTopic

Choose the Best Option

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

  • A 22
  • B 33
  • C Undefined
  • D 11
Correct Answer: Option B

Explanation


33

Share This Question

Challenge a friend or share with your study group.