Escape sequence strings

Tell us what’s happening:
Describe your issue in detail here.
what’s wrong with the formula?

Your code so far
const myStr = “FirstLine\n\t\SecondLine\nThirdline”; // Change this line

const myStr = "FirstLine
Thirdline"; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15

Challenge: Escape Sequences in Strings

Link to the challenge:

The thing is that you are not using \n to have a newline. You can’t do it manually but by using \n.

this is what worked for me, i think fcc changed their lesson a bit cause i see ppl using var while mine is const.

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

oh, I’ll keep that in mind when interacting with the community. Thanks!