JavaScript Math.pow()
JavaScript Math.pow()
The Math.pow() method returns the value of x to the power of y. In other words, xy.
Syntax:-
Its syntax is:- Math.pow(x, y)
Return:-
Its return is:- number with a value of x to the power of y
Further Explanation:-
Parameter | Description |
---|---|
x | Required. The base |
y | Required. The exponent |