What is wrong with this code??
Your code so far
var myStr = "First\tLine\n\"Second\tLine\"\rThird\tLine";
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36
.
Link to the challenge:
https://www.freecodecamp.org/challenges/escape-sequences-in-strings
Your output does not match the required output. Why did you choose to put tabs between the words?
var myStr = "First\tLine\n
var myStr = “Second\tLine”\r
var myStr = “Third\tLine”;
You mean to write this code
No. You just redeclared the variable myStr
three times. Not only is this a syntax error, but at the end your myStr
only outputs
Third Line
I do it but it tell me it’s wrong
It is wrong. That is not what your string is supposed to be.