Escape Sequences in Strings- Error Not a function

Escape Sequences in Strings- Error Not a function
0

#1

I’ve got the correct answer in the window, as it appears to look the same as the example, but this is not the answer they are looking for.

Another set of eyes would be great!

The goal:

    FirstLine
   \SecondLine\
    ThirdLine

My code:

var myStr = "“FirstLine\n\SecondLine\\rThirdLine”"
Error:Not a function

There are actually two back spaces before SecondLine and after SecondLine, but they do not show up in the editor here, even though I’ve written them.


#2

Edit:

This has been solved, already.

The problem was a missing semi-colon. That was all.