The instructions asks for:
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']
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?