Skip to content
Advertisement

How to remove certain items from a Stack [closed]

I have a homework problem in which I need to remove all the green items from the stack.

Here is my code:

JavaScript

Can someone point me in the right direction? I think I’m almost there.

I also need to figure out why I am getting some errors.

Here are the errors:

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement