-
-
Notifications
You must be signed in to change notification settings - Fork 36k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New line character is required before third line #10485
Comments
@tauheedkhan Could you provide some more information? If you're curious about why there isn't a new line before the third line, it's because it uses a carriage return which is quite similar. You can read about the differences here: http://stackoverflow.com/questions/1761051/difference-between-n-and-r |
@dhcodes I think the issue comes from the instructions
Because when you print out the correct string, you don't get that new line. We can either add the Although I liked having carriage return in the challenge so that you're able to try different escape characters, practically, we'd probably want to use |
@erictleung In either case, expected result should be changed as carriage return will not give you a new line. Although I agree, using as many escape sequence in the problems is good for better understanding. |
Ah, when I wrote this string for the challenge I tested it in repl.it and the FCC console, but not in browser consoles. In the former I'd suggest replacing the
It loses some symmetry but should resolve the issue 😄 |
@BKinahan sounds like a good compromise to me! 👍 |
@erictleung @Bouncey Can I work on fixing this one? |
@ktajpuri 👍 go for it :). If you have any problems, you can ask for help in the Contributors chat room |
@ktajpuri Are you still working on this? |
I'd like to work on it if it's open |
The return carriage didn't give a new line, so the string is re-written. The Spanish translation is also updated. From issue 'new line character is required before third line' freeCodeCamp#10485.
The return carriage didn't give a new line, so the string is re-written. The Spanish translation is also updated. From issue 'new line character is required before third line' freeCodeCamp#10485.
The return carriage didn't give a new line, so the string is re-written. The Spanish translation is also updated. From issue 'new line character is required before third line' freeCodeCamp#10485.
It's not working |
RESOLVE |
var myStr = "FirstLine\n\t\SecondLine\nThirdLine"; |
var myStr = "\nFirstLine\n\t\SecondLine\nThirdLine"; |
"\nFirstLine\n\t\SecondLine\nThirdLine"; |
I am locking this because this issue has been closed and the other comments I am seeing should be addressed on the forum. |
Challenge Escape Sequences in Strings has an issue.
User Agent is:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
.Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
The text was updated successfully, but these errors were encountered: