sshah6
June 26, 2018, 9:36pm
#1
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.
@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.
Dalal0
May 28, 2019, 12:09pm
#6
var myStr='FirstLine\n\tSecondLine\nThirdLine';
**Hi guys, First read the statement then take action
1 Like