Escape Sequences in Strings Not Working

Escape Sequences in Strings Not Working
0.0 0

#1

Tell us what’s happening:
I’ve read all the hints and watched the video on YouTube, but it still does not work though it looks correct.

Your code so far

var myStr;//"FirstLine\n\\SecondLine\\\rThirdLine";

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0.

Link to the challenge:


#2

Instructions
Assign the following three lines of text into the single variable myStr using escape sequences.

The key word here is assign. How do you assign a value to a variable?

Your current code declares myStr and that is it. On the same line of the declaration, you have the following commented code:

//"FirstLine\n\\SecondLine\\\rThirdLine";

Remember the // on a line makes everything after it a comment.


#3

Thank you. When I used the = sign it assigned the value. Now it works.