Back to functions

Expression.add


add

Adds two expressions.

Usage: nerdamer(x).add(y)


Parameters

String x Expression 1
String y Expression 2

Returns

Expression

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