Moxie Interview Question

Explain how this works in JavaScript