Tell us what’s happening:
Describe your issue in detail here.
the test is
myStr should not contain any spaces
myStr should contain the strings FirstLine, SecondLine and ThirdLine (remember case sensitivity)
FirstLine should be followed by the newline character \n
myStr should contain a tab character \t which follows a newline character
SecondLine should be preceded by the backslash character \
There should be a newline character between SecondLine and ThirdLine
myStr should only contain characters shown in the instructions
and my answer is
const myStr = "\t\nFirstLine\n\\SecondLine\nThirdLine";
// Change this line
can you tell me what is wrong here.
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 11) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Mobile Safari/537.36
Challenge: Basic JavaScript - Escape Sequences in Strings
Link to the challenge:
