Back to functions

Expression.pow


power

Raises one expression to another.

Usage: nerdamer(x).pow(y)


Parameters

String x Expression 1
String y Expression 2

EXAMPLES:
var x = nerdamer('x^2+x').pow('x');
console.log(x.toString());
var x = nerdamer(5).pow(2);
console.log(x.toString());
OUTPUT:
Back to functions