Basic JavaScript - Escape Sequences in Strings

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

Your code so far

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

Challenge: Basic JavaScript - Escape Sequences in Strings

Link to the challenge:

Well, you must ESCAPE a backslash (“\”) if you want it to appear literally. Now you must figure out which of those backslashes help to “do” something, and which one of those is just waiting for you to ESCAPE it with backslash (“\”).

ESCAPE means you prepend it with a backslash (“\”) so it will look like this:

\\some text
--------------------------------------------------------------
On the print out this will look like this:
\some text

Here’s some info:

1 Like