Nordstone Interview Question

they asked logical Question of JavaScript.