Skip to content
Quiz · Variables and types · lesson 2 of 9

Quiz — assigning to a const

What happens when the program runs?

JavaScript
const x = 1;
console.log(x);
x = 2;
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