Escape Sequences in Strings.. Help please

What am I doing wrong? I’m super exhausted & also a newbie with Javascript. So bare with me. :laughing:

var myStr="FirstLine\n\t
    \\SecondLine\n
ThirdLine";

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

You can’t split your string into multiple lines like that.

1 Like

Guess, I’ll have to re-read the challenge. Like I said; I’m pretty sleep deprived at the moment. :skull:

Also totally new to Javascript though. Thanks for the response.

Appreciate it! :facepunch:

Sounds like it’s time for a nap. :sleeping: Let your brain rest and absorb all that new knowledge.

1 Like

Gonna sleep like a baby tonight. Moved from the Seattle area to the Coachella Valley area of California last Friday. Been super busy!
Loving the weather though haha. :cactus::palm_tree::sunny: (back on topic) :upside_down_face: