Hackerrank "Queues: A Tale of Two Stacks" Javascript Solution
You've pretty much nailed it.
You don't really need the len variable here though,
you could use a condition on inQueue.length directly.


len = inQueue.length;
while (len-- &gt; 0) {
    outQueue.push(inQueue.pop())
}



The other thing I notice is the inconsistent use of semicolons.
Sometimes you add at the end of statements,
sometimes not.
You could choose whichever way, but do it consistently.

Lastly, the empty default statement of the switch is unnecessary, you can drop it.