Domanda di colloquio di Rootquotient

Gave a Javascript code and asked for its output