Hi guys!
I’ve been expanding on the Counting Cards lesson from the Javascript section. You can see what I have so far here.
I’ve run into a few problems:
-
Sometimes
FULL_DECK[randomCard]
returnsundefined
. I think the problem is withrandomCard
, but I’m not sure. How do I keep this from happening? -
When I look at the array, there are a normal number of cards, but sometimes
document.getElementById("newCard").innerHTML
insists that I pulled 8 Kings in a deck. How do I find out where I went wrong?
Thank you for your time and help!