0
Im having trouble with a card game. I need to print the deck than take a card and remove it from the deck. What is my mistake?
Whenever I run the code is says exceptionoutofbound for the array but im using "length" to adjust every time it takes a card out. Need help in understanding my mistake. https://code.sololearn.com/c0BFYyTz854X/?ref=app
1 Antwort
+ 2
Line 42 your using DECK[DECK.length], which doesn't exist as indexes are 0 to DECK.length-1.