I did exactly right like the console. What have I done wrong on my code? Thank you so much!
var myStr = “FirstLine\n\t\SecondLine\r\ThirdLine”; // Change this line
Your browser information:
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36.
Challenge: Escape Sequences in Strings
Link to the challenge:
is your new line character between
ThirdLine? what do you have there?
It is a common source of confusion, but while they look the same, the newline and the return are actually different characters. Which are you using?