Need help with this script

So, I am having trouble figuring out what I am doing wrong here.

var myStr = "FirstLine\n\t\\SecondLine\nThirdline";

It should be correct, but its saying theres errors in it.

What are you trying to accomplish? What part isn’t working? What do the failing tests say?

It should be:
First Line
(should be a tab here) \SecondLine

But its showing up as:
(should be a tab here) \SecondLine

Its also saying:
myStr should contain the strings FirstLine , SecondLine and ThirdLine (remember case sensitivity)
There should be a newline character between SecondLine and ThirdLine (which I believe I have this already)
myStr should only contain characters shown in the instructions (I dont think Ive used any other characters)

“Thirdline” is not the same as “ThirdLine”

1 Like

Oh MY goodness.
Thats all it needed. Thank you so much!!

I’m glad I could help. Typos will get you every time.

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