Capital One interview question

How JavaScript does certain operations