JS
challenger
Home
JavaScript Basics
variables
Time to comment
Time to comment
The variable
x
gets reassigned, but we want to keep its original value. Comment out the reassignment so the code still prints
100
.
reset
let x = 100; // comment out the following line
x = 0;
console.log(x); // expected output: 100
JavaScript
Run Code
Console