Basic JavaScript: Escape Sequences in Strings

Basic JavaScript: Escape Sequences in Strings
0

#1
var myStr="FirstLine\n\\SecondLine\\\rThirdLine"; // Change this line

I scored 4/6, still couldn’t score please


#2

Can you be more explicit? :thinking: What specifically do you need?


#3

What do the failing tests say? I seem to remember that their should be a tab in there.


#4
var myStr = "<a href=\"http://www.example.com\" target=\"_blank\">Link</a>";ype or paste code here

this is my code above and below is what the tests says.

Change the provided string to a string with single quotes at the beginning and end and no escape characters.

Right now, the tag in the string uses double quotes everywhere. You will need to change the outer quotes to single quotes so you can remove the escape characters.


#5

Your code currently has double quotes wrapping it and includes several escape characters.


#6

i passed the test now