(Help Needed) Basic JavaScript: Storing Values with the Assignment Operator

Tell us what’s happening:

Your code so far

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

b = a

Your browser information:

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

Challenge: Storing Values with the Assignment Operator

Link to the challenge:

Error Message:

// running tests
a should be assigned to b with =.
// tests completed

In javascript, you generally have to close the statement with a semicolon.

So if you add one to each statement:

a = 7;

b = a;

The test should work

Who could have believed it was that simple. Thanks :+1: .

1 Like