Javascript challenge 115

Javascript challenge 115
0

#1

Can someone help me with challenge 115 for basic JavaScript?

It says:

Assign the value 7 to variable a.

Assign the contents of a to variable b.

yet,

var a = 7;
var b = var a;

doesn’t work and I don’t understand what it is asking then if that isn’t correct?


#2

You can’t use var b = var a. To refer to an existing variable, you just need the name: var b = a;


#3

It should be

var a = 7;
var b = a;

You declared a twice. and I think you cannot pass values like that.