freeCodeCamp icon indicating copy to clipboard operation
freeCodeCamp copied to clipboard

SlotMachine Select Complaining that the wrong selector is used.

Open whittenjaw85 opened this issue 11 years ago • 4 comments

Challenge http://freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

// Only change code below this line. $($('.slot')[0]).html(slotOne); $($('.slot')[1]).html(slotTwo); $($('.slot')[2]).html(slotThree);

functions but does not report a pass

whittenjaw85 avatar Aug 18 '15 12:08 whittenjaw85

This challenge will pass if double quotes (") is used instead of single quotes (') for the selector. E.g. use $(".slot") instead of $('.slot').

iisupreme avatar Aug 19 '15 22:08 iisupreme

Hey @whittenjaw85 thanks for posting this!

We have a few duplicate postings of this so see #2522 for updates on this issue.

Please close this as a duplicate.

benschenker avatar Aug 23 '15 05:08 benschenker

You got it. Is there a particular reason why specific styles of selectors should be used?

"" versus ''?

On Sun, Aug 23, 2015 at 1:48 AM, Ben Schenker [email protected] wrote:

Hey @whittenjaw85 https://github.com/whittenjaw85 thanks for posting this!

We have a few duplicate postings of this so see #2522 https://github.com/FreeCodeCamp/FreeCodeCamp/issues/2522 for updates on this issue.

Please close this as a duplicate.

— Reply to this email directly or view it on GitHub https://github.com/FreeCodeCamp/FreeCodeCamp/issues/2055#issuecomment-133790336 .

Jonathan Whitten Design Engineer 678.485.9450 [email protected]

whittenjaw85 avatar Aug 23 '15 11:08 whittenjaw85

No reason, thats why it's going to be fixed :smile:

benschenker avatar Aug 26 '15 21:08 benschenker