guys, I passed this challenge without adding \r which I saw in all of your responses. and other thing that I didn’t get it is use of carriage return \r Your code so far
var myStr="FirstLine
\t\\SecondLine
\ThirdLine"; // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5.
Since you are using the newline character, \n, a carriage return \r isn’t needed. The solution doesn’t use a \r and the problem doesn’t ask for one, so I don’t understand what you mean by
It is similar, yeah. There are some differences in their history and use (too much to summarize, but there are some cool articles on Google), but the two are very similar.