Simple Stack Implementation in JavaScript

I like your suggestions, sen! I failed to take into account that passing arrays around could cause someone to update the contents outside of the Stack. I’ve updated the snippets to reflect that.

:stuck_out_tongue: