Capital One Interview Question

How JavaScript does certain operations