Tell us what’s happening:
Hi! I am doing the Basic Javascript course and I am enjoying it so much! Until I got stuck there in the “escape-sequences-in-strings” episode.
I would like to know what is wrong that I can’t advance.
Thank you in advance for your time!!
Your code so far
var myStr = "\t \n FirstLine \n \b \\ SecondLine \n ThirdLine"; // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36.
(I’m showing it a little different, but you get the idea). Note that <newline>, <tab> and <backslash> are NOT what you need to show, they’re looking for the escape sequence, but just a different way of representing them. There are NO spaces. And you have characters before FirstLine – is that accurate?
var myStr = “FirstLine\n\t\\SecondLine\nThirdLine”;
Is my font wrong?? I’m on an iPad in Safari doing this, is that the problem??
I’ve tried retyping it, double checking for no spaces, searching google, and double checking for my semicolon at the end. I can’t get the test to pass. Anything else I should try?
Found my problem. I have a thing in my settings called “smart punctuation” which was adding a font markup property to the text I was entering in the code editor. Made it not recognize my otherwise correct code. I disabled Smart Punctuation and retyped and then resubmitted the test and it ran fine.