-
-
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
Escape Sequences in Strings challenge not accepting escape sequences #9314
Comments
@aicccia To complete this challenge, you'll need to be very precise. There should be a space before the first escape backslashes, no space between the new line character and tab, and no space between the tab and "Here". @FreeCodeCamp/issue-moderators I recently updated the challenge and it checks for a very precise string and I think it'll be difficult and possibly confusing to ask for those specific spaces. I think a better solution would be to write a regex looking for the string and accommodate for spaces around the escape characters. Thoughts? |
This challenge has definitely had a spike in confusion in the HelpJavaScript chat since the change to a pair of sentences from the previous string of only escaped characters separated by spaces. This is compounded by the fact that the instructions don't display spaces clearly, and exacerbated by many new users' lack of familiarity with Gitter's code formatting syntax (which makes it difficult to detect where the error lies as Perhaps a string without any spaces or non-escaped punctuation is a better alternative, such as this or some variation:
|
I spent quiet some time getting this one right. I kept getting the error messages:
and
So, I typed and retyped the escape character sequence several times, making sure there were no spaces. I'm thinking it might be an idea to change the error messages somehow, maybe making the first one encourage that you check the entire text, not just escape sequences and spacing, and for the last one making sure it doesn't show unless the spacing is actually wrong. |
the string should look like this. there is no space between the second tab and the second line.
|
Just tried charlesBak solution still having no success! I've tried multiple solutions that have worked for others on the same problem and still no luck. |
sorry i forgot the mark at the end of the string. removed solution by mod its work fine |
Thanks charlesBak! |
my pleasure Marshallgray. |
This part is confusing. Although the string #9314 (comment) passes the challenge, the rendered preview has a bug. |
@BKinahan thanks for fielding through all the new confusion about this challenge. I like your suggestion on the string what should be used var myStr = "First\tLine\n\"Second\tLine\"\rThird\tLine"; |
You will also need to follow the spacing as it looks above with no additional spaces between each escape sequence. I think it should be "...with no additional spaces after each escape sequence" instead, a lot of people leave a space between the last \t and Here |
This challenge is a bit confusing, definitely need more help on this, @freeCodeCamp please add some more content to understand it better. Thanks 😄 |
@shivashinde, if you feel this challenge needs more changes, please open a new github issue. |
removed solution by mod this will work fine |
malixi: you don't need the backslashes before FirstLine and after ThirdLine (this one is escaping the closing " btw). |
removed solution by mod |
1 similar comment
removed solution by mod |
I apologize |
removed solution by mod. |
removed solution by mod |
if better instructions existed folks would not be posting here with questions. please improve |
This challenge can be pretty confusing with out being able to see the output. Try running this code in a interpreter online like www.codecademy.com or codepen.io. Using the interpreters you can see your output and how it looks. |
i also tried but iam only getting errors |
removed solution by mod |
Ok sorry I did On Sat, Nov 5, 2016 at 2:39 PM, Lance notifications@github.com wrote:
|
removed solution by mod |
Hello guys I have spent hours trying to solve this challenge without any luck can anyone help? |
var myStr = '"FirstLine\n \n SecondLine \r nThirdLine/"'; // Change this line |
Solution removed by mod. |
but guys you are forgetting about the first instruction "myStr should have encoded text with the proper escape sequences and no spacing." |
Solution removed by mod. |
still not working
…On Thu, Nov 24, 2016 at 5:50 AM, symbioticon16 ***@***.***> wrote:
var myStr = "FirstLine\n\SecondLine\\rThirdLine";
this is it ;-)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9314 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVHNKwykrE5nD25_wfKUVzk1tuNpHOsOks5rBZYfgaJpZM4I8gkG>
.
|
Mar 19 '13 at 21:56
…On Nov 22, 2016 5:29 AM, "ngabo kevin" ***@***.***> wrote:
but guys you are forgetting about the first instruction "myStr should have
encoded text with the proper escape sequences and no spacing."
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9314 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AS1_hZouzHGIb4viZFJ-JU-o5EYRMLKMks5rAu4fgaJpZM4I8gkG>
.
|
this is still not working |
The issue tracker is for reporting bugs only. Please use the help chat room or try looking through the forum for help with a specific challenge. Happy Coding. |
Temporarily locking conversation. |
Challenge Escape Sequences in Strings has an issue.
User Agent is:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2756.0 Safari/537.36 OPR/40.0.2267.0 (Edition developer)
.Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
Screenshot: https://i.sli.mg/hEmocD.png
I asked for help in the chatroom and my solution was the same as others who had successfully completed the challenge.
The text was updated successfully, but these errors were encountered: