While Loop. 6 Help! *frustrated*


#1


Replace this line with your code.


#2

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


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.