<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Replace this line with your code.
…Are you skipping steps? Or are you revisiting it?
Your problem lies here:
currentCard = cards[randomNumber];
var currentCard = 'Heart';
Instruction #2 is for your first mention of var currentCard = 'Heart'
which you already have under your cards array.
Next step is to implement the while loop which I see you’ve already done…So I think you’re a little ahead.
I didn’t attempt this lesson but judging from your code, is this what you wanted to do? LINK
system
closed
#3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.