Basic JavaScript - Escape Sequences in Strings

Tell us what’s happening:
Describe your issue in detail here.
Good day to everyone. I have been attempting this challenge for quite some time now and I can’t seem to figure out what part of the string I am getting wrong. This is the response I am getting from the console, “SyntaxError: unknown: Expecting Unicode escape sequence \uXXXX. (1:12)”.
Kindly assist me.
Your code so far

const myStr\n\t  = "FirstLine\n\t\\SecondLine\nThirdLine"; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 OPR/

Challenge: Basic JavaScript - Escape Sequences in Strings

Link to the challenge:

You have made some unnecessary changes to the variable name.

1 Like

Thank you very much.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.