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\\SecondLine\n\t\ThirdLine"; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0

Challenge: Basic JavaScript - Escape Sequences in Strings

Link to the challenge:

Please describe the issue you are experiencing, in your own words, when posting for help. Describing the problem helps others help you.

Try to walk through your string versus the formated one they want. Is the tab character being applied to the correct line? Do you have any extra escape characters that are going to add a \ to the output that shouldn’t be there?

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