{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7881","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7881/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7881/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7881/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/7881","id":145609482,"number":7881,"title":"Instructions for \"Quoting Strings with Single Quotes\" challenge are confusing and do not teach concept","user":{"login":"tmad40blue","id":1312104,"avatar_url":"https://avatars.githubusercontent.com/u/1312104?v=3","gravatar_id":"","url":"https://api.github.com/users/tmad40blue","html_url":"https://github.com/tmad40blue","followers_url":"https://api.github.com/users/tmad40blue/followers","following_url":"https://api.github.com/users/tmad40blue/following{/other_user}","gists_url":"https://api.github.com/users/tmad40blue/gists{/gist_id}","starred_url":"https://api.github.com/users/tmad40blue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmad40blue/subscriptions","organizations_url":"https://api.github.com/users/tmad40blue/orgs","repos_url":"https://api.github.com/users/tmad40blue/repos","events_url":"https://api.github.com/users/tmad40blue/events{/privacy}","received_events_url":"https://api.github.com/users/tmad40blue/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/labels/Discussing","name":"Discussing","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"erictleung","id":2754821,"avatar_url":"https://avatars.githubusercontent.com/u/2754821?v=3","gravatar_id":"","url":"https://api.github.com/users/erictleung","html_url":"https://github.com/erictleung","followers_url":"https://api.github.com/users/erictleung/followers","following_url":"https://api.github.com/users/erictleung/following{/other_user}","gists_url":"https://api.github.com/users/erictleung/gists{/gist_id}","starred_url":"https://api.github.com/users/erictleung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erictleung/subscriptions","organizations_url":"https://api.github.com/users/erictleung/orgs","repos_url":"https://api.github.com/users/erictleung/repos","events_url":"https://api.github.com/users/erictleung/events{/privacy}","received_events_url":"https://api.github.com/users/erictleung/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-04-04T07:41:42Z","updated_at":"2016-05-10T18:52:23Z","closed_at":"2016-04-15T05:05:21Z","body":"Hi, the challenge \"Quoting Strings with Single Quotes\" (available at https://www.freecodecamp.com/challenges/quoting-strings-with-single-quotes ) has confusing, vague, and conflicting information/instructions that did not allow me to complete the challenge without arbitrarily searching outside of FCC for a long while.\r\n\r\nThe instructions tell you that single- and double-quotes in JavaScript are interchangeable, so long as you are consistent:\r\n\r\n> String values in JavaScript may be written with single or double quotes, so long as you start and end with the same type of quote. Unlike some languages, single and double quotes are functionally identical in JavaScript.\r\n\r\nThis implies that you could complete the challenge by using ALL single or ALL double quotes, so long as you remain consistent. Unfortunately, this is not the case, as the challenge CANNOT be passed without having single AND double quotes in \"correct\" locations, which are not taught.\r\n\r\nThe instructions say:\r\n\r\n> Change the provided string from double to single quotes and remove the escaping.\r\n\r\nThis implies that ALL double quotes need to be changed to single quotes, but this does not produce a satisfactory solution to the challenge.\r\n\r\nThis is my working solution to the challenge:\r\n\r\n```\r\nvar myStr = '<a href=\"http://www.example.com\" target=\"_blank\">Link</a>';\r\n```\r\n\r\nOnly by Googling various opinions on single- vs. double-quoting in JavaScript was I able to use trial-and-error to find a working solution for the challenge. I was left confused and without an understanding of when to use which type of quote, and I have not learned this concept in any usable manner.\r\n\r\nIt is my suggestion that the teaching and instructions of this challenge be seriously revised so that they actually teach the concept that you are wanting to teach, and so that anyone attempting the challenge is not left confused about where to start.\r\n\r\nEDIT: After having this concept explained to me in your Gitter chat room, I now understand that there is a rule about quotes in JavaScript that is NOT taught through this challenge:\r\n\r\n> Unless they are escaped, you cannot have more than one pair of whichever quote type begins a string.\r\n\r\nThis is not covered in the instructions, at least not thoroughly enough to understand the concept."},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/218254162","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/7881#issuecomment-218254162","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7881","id":218254162,"user":{"login":"da-anguiano","id":14833732,"avatar_url":"https://avatars.githubusercontent.com/u/14833732?v=3","gravatar_id":"","url":"https://api.github.com/users/da-anguiano","html_url":"https://github.com/da-anguiano","followers_url":"https://api.github.com/users/da-anguiano/followers","following_url":"https://api.github.com/users/da-anguiano/following{/other_user}","gists_url":"https://api.github.com/users/da-anguiano/gists{/gist_id}","starred_url":"https://api.github.com/users/da-anguiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/da-anguiano/subscriptions","organizations_url":"https://api.github.com/users/da-anguiano/orgs","repos_url":"https://api.github.com/users/da-anguiano/repos","events_url":"https://api.github.com/users/da-anguiano/events{/privacy}","received_events_url":"https://api.github.com/users/da-anguiano/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T18:52:23Z","updated_at":"2016-05-10T18:52:23Z","body":"The first an third condition bizarrely contradict each other. Also minimizing double quotations is an aesthetic choice and not necessarily best practice -- which is how it's made to sound."}}