Escape Sequences in Strings solution?

I have come up with this solution to escape sequences in strings.

var myStr;“FirstLine\n\t\SecondLine\nThirdLine”;

Anyone tell me what I’m doing wrong?

Are you trying to assign the string to the variable? What should be between the two that isn’t a semicolon?

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