Let Variable [CLOSED]


#1

I am stuck at the Create a Variable: Let lesson.

Within this lesson, I am instructed to create a let variable named “changeMe” and set it to true. I am then told to change it to false on the next line. I am then instructed to print the new variable to the console. And I am getting a SyntaxError: Identifier ‘changeMe’ has already been declared error. Can you help?



let changeMe = true;
let changeMe = false;

console.log(changeMe); 



#2

Please ignore me! I have just figured it out! :slight_smile: :slight_smile:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.