Basic JavaScript - Escape Sequences in Strings

Tell us what’s happening: no answer is working

Describe your issue in detail here.

Your code so far

const myStr = “FirstLine\n\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/120.0.0.0 Safari/537.36 Edg/120.0.0.0

Challenge Information:

Basic JavaScript - Escape Sequences in Strings

Welcome to the community @Adonis109 !

Please look at this example from the lesson

FirstLine
    \SecondLine
ThirdLine

Notice the first line and the third line are not indented. But, the second one is indented and has an escape \ before it already.

This is a good attempt.
However, I suggest looking at the list provided for us to use.
You may wish to consider using a tab before the SecondLine along.
As well, I think you meant to type \n before ThirdLine

Make sure the code does not include anything outside of the quotation marks, not any ; nor anything else.

I hope this will help you!

Happy coding! :sun_with_face:

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