JavaScript Objects The Math Object- Math Pow() - Javascript Objects

What is JavaScript - Math pow Method?

This method returns the base to the exponent power, that is, baseexponent.

Syntax

Its syntax is as follows −

Parameter Details

base − The base number.

exponents − The exponent to which to raise base.

Return Value

Returns the base to the exponent power, that is, baseexponent.

Example

Try the following example program.

Output

First Test Value : 49

Second Test Value : 16777216

Third Test Value : 1

Fourth Test Value : 0


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Javascript Objects Topics