Tell us what’s happening:
Your code so far
var myStr =“FirstLine
\SecondLine\\rThirdLine”; // Change this line
Challenge: Escape Sequences in Strings
Link to the challenge:
Tell us what’s happening:
Your code so far
var myStr =“FirstLine
\SecondLine\\rThirdLine”; // Change this line
Challenge: Escape Sequences in Strings
Link to the challenge:
@Sal254 Hi welcome to FreeCodeCamp. You must assign variable myStr
with following value:
FirstLine
\SecondLine
ThirdLine
That’s it, simple.
And What is the escape code for new line
and tab
.
check this list:
Code Output
\' single quote
\" double quote
\\ backslash
\n newline
\r carriage return
\t tab
\b word boundary
\f form feed
important, you also must use ""
straight quotes insead of the tilted quotes I see in your code