How do I add a new line character between SecondLine and ThirdLine string?

Tell us what’s happening:

Your code so far


var myStr = '\"FirstLine\n\t"\\"SecondLine\n\"\"ThirdLine\"'; // Change this line


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings

Hi there, don’t use single or double quotes for new line or tab. Read the statement before solving the problem. Use \n for newline and \t for tab.

Thank you. Next time i will be carefull.

Hi, thank you i got it.

var myStr='FirstLine\n\tSecondLine\nThirdLine';


**Hi guys, First read the statement then take action

1 Like