While Loop. 6 Help! *frustrated*


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


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