title: How do you implement a Stack and a Queue in JavaScript?
body: <p>What is the best way to implement a Stack and a Queue in JavaScript?</p>
  
  <p>I'm looking to do the shunting-yard algorithm and I'm going to need these data-structures.</p>