Basic JavaScript - Escape Sequences in Strings (Run the test not working)

Hi Guys,

Some of my courses of the funtion “run the test” is not working.
It doesn’t heppen in the other courses, but only happen in JavaSript.

Futher more, it doesn’t happen in every JavaScript course but this one and few others.
Can someone help with this issue?

I am using PC win10 with Chrome.

Your code so far

const myStr = "\"FirstLine\"\t\SecondLine\t"\'ThirdLine\'"; // 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/ Safari/537.36

Challenge: Basic JavaScript - Escape Sequences in Strings

Link to the challenge:

Your solution is incorrect: you haven’t escaped a quote character, so you have a string like this:

const myStr =  "\"FirstLine\"\t\SecondLine\t"

Then everything after that is going to be a syntax error.

Edit: the error is visible in the forum syntax highlighting:

1 Like

Thank a lot!
I realize that if there is a syntax error, the “run the test” funtion wouldn’t work.

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