Escaping Literal Quotes challenge test is unclear
See original GitHub issueChallenge Escaping Literal Quotes in Strings has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
var myStr = "(I am a \"double quoted\" string inside \"double quotes\").";
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
"Escaping quotes in literal strings" test needs to be updated
This test was made to expect this many quotes as a workaround for an issue that no longer exists. What should be changed....
Read more >Escaping Literal Quotes in Javascript - Stack Overflow
This is the challenge: I am a double quoted string inside double quotes. I have this: " I am a \"double quoted\" string...
Read more >Escaping Literal Quotes in Strings - Guide
Escaping Literal Quotes in Strings Hints Hint 1 When you need to use a special character such as " inside a string you...
Read more >Escaping Literal Quotes in Strings - Free Code Camp - YouTube
Today we discuss escaping literal quotes in JavaScript strings. This is part of a series of tutorials in which I go over the...
Read more >Escaping Literal Quotes in Strings, freeCodeCamp Basic ...
In this challenge we learn how to add multiple double or single quotes inside of our string by using the backslash escape character...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Blazer433 thanks for the issue. Your code doesn’t require the parentheses. Looking at that last test, I can see how there can be confusion on what the string should be.
We’ve had lots of issues on this challenge. Looking back at a previous issue, I think a little edit to a suggestion on changing the test to this will help:
I changed the wording to “contain” because I think the word “equals” could be interpreted as a coding-kind-of equals (i.e.
var myStr EQUALS string;
), which may have people copy-pasting that string. I think that should help clear up some confusion.cc/ @FreeCodeCamp/issue-moderators
@Blazer433 I think it makes sense to keep this issue open for the time being because the pull request hasn’t been merged yet (and the issue has not been fully addressed).
@AlenaHall do you mind clarifying what you mean? Thanks!