Basic JavaScript - Assigning the Value of One Variable to Another

assist here on assigning a variable to another variable

Your code so far

// Setup
var a;
a = 7;
var b;
var b=var a;
// Only change code below this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Assigning the Value of One Variable to Another

Link to the challenge:

The keyword var is not needed before the a and b because the variable your assigning a value to(b) has been declared already .