Assignment operator/variable identity ("SyntaxError: Unexpected token var")

Assignment operator/variable identity ("SyntaxError: Unexpected token var")
0

#1

This challenge is “Storing values with the Assignment Operator.”

I’m bummed because I think I have a pretty good grasp on how it works, but I’m not getting any recognition of my variable’s identity once it’s on the right side of the equal sign. Here’s what I have:

When I hover over the red circle, I get the following error messages:
-“Expected an identifier and instead saw ‘var’”
-“Missing semicolon”
-“Expected an assignment or function call and instead saw an expression”

This seems like such a simple task so I’m pretty stumped about why I can’t pass it. Any help would be greatly appreciated!


#2

You don’t need any vars as they have already been declared in lines 3 and 4. Just assign the value of a to the value of b without using the var keyword.