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 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings/
Marmiz
August 19, 2019, 2:38am
2
Everything inside double quotes is already a string, and the lesson in not asking to wrap each “word” in its own double quotes.
So for example the lesson is expecting
FirstLine
But since you escape double quotes around it the output is
"FirstLine"
Which is not the same.
Hope this helps
is anything wrong with the newline character I added to the code.
Marmiz
August 19, 2019, 2:55am
4
At a first glance the only problem I can see is the unnecessary quotes around each words.
If you are still having problem passing the lesson feel free to post the most updated version of your solution.
Thank you very much, I passed the lesson