JavaScript Loops


#1

I'm stuck on #4 - Outside the while loop, on the last line of the program, use console.log to log that the program found a spade.
Run the code a few times to see the output changing. You can see the while loop guessing a card, then seeing if it is a Spade, over and over, until it finds one.

Not sure what my line of code should be. New to coding.
Thanks!


#2

Don't log the var currentCard, just log a string indicating that the card was found . :slight_smile:


#3

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