question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Escaping Literal Quotes challenge test is unclear

See original GitHub issue

Challenge 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:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
erictleungcommented, May 31, 2016

@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:

Variable myStr should contain the string: I am a "double quoted" string inside "double quotes".

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

1reaction
daniel-chungcommented, Jun 6, 2016

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found