Basic JavaScript - Escape Sequences in Strings

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Challenge Information:

Basic JavaScript - Escape Sequences in Strings

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

When you ask for help please explain what your issue is…

it looks like you have an extra comma in the string, maybe try removing that comma?

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