Skip to content
Advertisement

Taking an element from a list/variable [duplicate]

I’m trying to take a card away from the deck after the player’s cards have been dealt, so those cards aren’t dealt again.

JavaScript

But here is my command error:

JavaScript

Advertisement

Answer

I think you are looking for remove() which removes the element from the list:

JavaScript
Advertisement