According to the instructions, the while loop will never execute, since this is what you get
let cards = ['Diamond', 'Spade', 'Heart', 'Club'];
let currentCard = 'Spade';
while (currentCard !== 'Spade') {
console.log(currentCard);
currentCard = cards[Math.floor(Math.random() *4)];
}
console.log('You found a spade!');
The currentCard is said to be ‘Spade’ instead of something else like ‘Hearts’, as shown in the hint.
I am certain, I have followed the instructions right, even though I noticed quick enough they would not work, however I may be wrong, can you please let me know If I am wrong somehow?