Escape sequences in strings i need asistance

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


var myStr; "FirstLine
\\SecondLine\\\rThirdLine"; // 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/94.0.4606.81 Safari/537.36

Challenge: Escape Sequences in Strings

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


You can’t split a string over two lines like this.

Tell us what’s happening:
Describe your issue in detail here.
Whats wrong with this ?

Your code so far


var myStr;'FirstLine\n\t\\SecondLine\nThirdLine';// 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/94.0.4606.81 Safari/537.36

Challenge: Escape Sequences in Strings

Link to the challenge:

Hi @duet.jack !

The issue is here

You are supposed to use the assignment operator instead of a semicolon.

Then the test will pass

2 Likes

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