Back to functions

nerdamer.clearVars


clearVars

Clears all previously set variables.


Usage: nerdamer.clearVars()


Parameters

none This function takes no arguments

EXAMPLES:
nerdamer.setVar('x', 12);
nerdamer.setVar('y', '2*x');
var x = nerdamer('x+y');
console.log(x.toString());
nerdamer.clearVars();
x = nerdamer('x+y');
console.log(x.toString());
OUTPUT:
Back to functions