how to take power in javascript code example Example: exponent of two numbers in javascript math.pow(base, exponent)