Moxie interview question

Explain how this works in JavaScript