Java Exponentiation Operator Javascript Interview Question