SyntaxError: unknown: Unexpected token, expected ";" (1:22)

Tell us what’s happening:
it says “SyntaxError: unknown: Unexpected token, expected “;” (1:22)” the whole time and when i get rid of “;” it still doesn’t work.

Your code so far

var myStr = "i am a /"double quoted/" string inside /"double quotes/".";// Change this line

Your browser information:

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

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Hi Hugo, welcome to the forum!

The escape character is not / but a backslash ( \ )

1 Like