Tell us what’s happening:
From everything I can tell, I have input the code correctly. However, it gives me this error:
// running tests myStr should contain the strings FirstLine, SecondLine and ThirdLine (remember case sensitivity) There should be a newline character between SecondLine and ThirdLine myStr should only contain characters shown in the instructions // tests completed
Also, when I use console.log(myStr);
, it adds an extra tab character in front of the second line, even though there is clearly only one tab escape character. Please advise.
Your code so far
const myStr = "FirstLine\n\t\\SecondLine\nThirdline"; // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Escape Sequences in Strings
Link to the challenge: