Tell us what’s happening:
The code outputs fine in the console just as the sample of how it should look but when I run the test, I get these errors. Why?
Error 1 - ‘myStr’ should contain the strings ‘FirstLine’ , ‘SecondLine’ and ‘ThirdLine’ (remember case sensitivity)
Error 2 - There should be a newline character between ‘SecondLine’ and ‘ThirdLine’
Your code so far
var myStr = 'FirstLine\n\t\\SecondLine\nThirdline'; // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings