Tell us what’s happening:
myStr should have encoded text with the proper escape sequences and no spacing. is error code keep getting. I change up my escapes and kept getting same thing an see no spaces. TIA
Your code so far
var myStr="FirstLine\n\SecondLine\r\\ThirdLine\\";
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299
.
Link to the challenge:
https://www.freecodecamp.org/challenges/escape-sequences-in-strings
I tried that then had error for no closure . Maybe a bug?
What do you mean, tried that? That is what the output should be, what Randell is showing you. What is the input that you tried? The one that you gave gives an incorrect answer. Try it again and pay very close attention to the the instructions. A lot of people get caught up on this one because they aren’t paying close enough attention. It has to be exact. Everyone assumes when they can’t solve one of these, that it’s a bug. I just solved it again - I’m pretty sure there is no bug.
Try it again. If it doesn’t work, post us what you tried.
var myStr=“FirstLine\n\SecondLine\r\ThirdLine”; this is what I tried. Thanks toboth you for responding. only been coding for couple weeks so still rpetty green.
var myStr=“FirstLine\n\SecondLine\r\ThirdLine”;