freeCodeCamp: Bug in Waypoint: Quoting String with Single Quotes
Challenge Waypoint: Quoting Strings with Single Quotes has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12.
Please describe how to reproduce this issue, and include links to screenshots if possible.
This challenge requires the user to have 2 single quotes and 4 double quotes, but it also asks to get rid of all of the double quotes inside of the string except the ones required to write a string.

My code:
var myStr = "<a href='http://www.example.com' target='_blank'>Link</a>";
Original code:
var myStr ="<a href=\"http://www.example.com\" target=\"_blank\">Link</a>";
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 22 (6 by maintainers)
@pyoo0225 thanks for posting this issue! The solution is
var myStr = '<a href="http://www.example.com" target="_blank">Link</a>';. For me instruction is unclear. Only after I saw the second test message (You should have two single quotes ' and four double quotes ") I realized what’s the solution tests expect. I’ll let this open to discuss how we can clarify this instruction.removed solution by mod
Thanks.
thank for help anyone 😄
thanks.
Perhaps:
or
The other option would be to allow both solutions. Technically they’re both valid. It probably wouldn’t be too hard to change the tests up.