Skip to content
Quiz · Scope · lesson 6 of 8

Quiz — shadowing

What does the program print (lines separated by spaces)?

JavaScript
let x = 1;

{
    let x = 2;
    console.log(x);
}

console.log(x);

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way