Escape Sequences in Strings)

Escape Sequences in Strings)
0.0 0

#1

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:


#2

Your output does not match the required output. Why did you choose to put tabs between the words?


#3

var myStr = "First\tLine\n
var myStr = “Second\tLine”\r
var myStr = “Third\tLine”;
You mean to write this code


#4

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

#5

I do it but it tell me it’s wrong


#6

It is wrong. That is not what your string is supposed to be.