Syntax error confusing

**Tell us what’s happening:**the syntax error says to add semi colon. I dont see where a semi-colon is missing

Your code so far


// Change code below this line

var someAdjective = "amazing!";
var myStr = "Learning to code is ";
var myStr += var someAdjective;

Your browser information:

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

Challenge: Appending Variables to Strings

Link to the challenge:

1 Like

Hi,

Remove var in the last line!
var is a keyword for defining variables!

It worked. Thank you.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.