Escape Sequences in Strings automatic testing

Escape Sequences in Strings automatic testing
0

#1

Tell us what’s happening:
The automatic testing lets me get away with 1 backslash in between \t and Secondline
And it’s my opinion there should be 2.

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


var myStr; // Change this line


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

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


#2

Thank you for helping make FCC better. Bugs should always be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible. There is already a reported bug that is causing a small subset of campers to have no certificate sections on their settings page.


#3

You’re correct - there should be two backslashes to match what the exercise says is the code output. Without knowing how the test runs, I couldn’t say why that passes. \S -> S so you don’t get an error that way.


#4

It is probably the same as #17712.