Pow
Copied!
Pow( value, exponent)
Description
The Pow
function raises its first numeric argument, the base, to the
power of its second numeric argument, the exponent.
Parameters
Argument | Type | Definition and Requirements |
---|---|---|
|
Number |
The base. |
|
Number |
The exponent. |
Examples
Copied!
client.query([
q.Pow(2, 3),
q.Pow(5, 2),
])
.then((ret) => console.log(ret))
[ 8, 25 ]
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!