Back to functions

Expression.subtract


subtract

Subtracts two expressions.

Usage: nerdamer(x).subtract(y)


Parameters

String x Expression 1
String y Expression 2

EXAMPLES:
var x = nerdamer('x+1').subtract('x');
console.log(x.toString());
var x = nerdamer(0.1).subtract(0.2);
console.log(x.toString());
OUTPUT:
Back to functions