Tell us what’s happening:
Your code so far
var myStr=" \tFirstLine \t\\SecondLine ThirdLine"; // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 OPR/74.0.3911.107.
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 OPR/74.0.3911.107
Challenge: Escape Sequences in Strings
Link to the challenge:
When you use single/double quotes to define a string you can’t have actual line breaks in it, so your string has to be all in one contiguous line. You add line breaks using the special escaped character fore newline given in the instructions.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.