JavaScript Loops


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.


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


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