Hello guys. Please help I can't pass my test I don't know what could be the problem

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

var myStr = "Firstline
Thirdline"; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 8.1.0; ASTRO Build/OPM2.171019.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.109 Mobile Safari/537.36

Challenge: Escape Sequences in Strings

Link to the challenge:

Hi there,
It looks like you are using literal new lines in you string literal. In string literals, new lines are represented with \n, as shown in the challenge text.
It is illegal to use new lines in string literals. When you go further in your studies, you will learn about template literals which allow you to use new lines in your string.
Your tests will pass if you do this amendment.

Hope that helps.

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