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:

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.

@zohaib9613 Your code has been blurred out to avoid spoiling a full working solution for other campers who may not yet want to see a complete solution. In the future, please give the OP a hint or an example of a solution similar but not exactly like the full solution.

Thank you.

1 Like

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