Instruction does not match what it wants


The instructions asks for:

  1. Let's write a program that flips cards until we get a 'Spade.' Start by creating a variable named cards and set it equal to this array:

    ['Diamond', 'Spade', 'Heart', 'Club']

  2. Right under the array create a variable named currentCard and set it equal to 'Heart'.

    This variable will hold the name of the card we just flipped. We are using 'Heart' as the first card.

This is my code:

var cards = ['Diamond', 'Spade', 'Heart', 'Club'];
var currentCard = 'Heart';

But the instructions continually tells me that I am not meeting the requirement for 2.

What exactly, am I doing wrong?


Your code seems fine to me, but the link you posted takes me to an assignment with a lot more instructions than two. if that's the case, I suggest just moving to the next step and see what happens because as far as I can see your code is fine.


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