i am in a basic JavaScript lesson and can not figure out the answer to the test. this part of the lesson was focusing on moving a value from one variable to another so i wrote the possible correct answer and it said that I did something wrong. The question was to give b the value of seven while showing it is equal to a. So i put
var a;
a=7;
var b;
However it said that this was incorrect and I don’t understand
a=b;
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Assigning the Value of One Variable to Another
Link to the challenge: