var x = nerdamer('x*x'); console.log(nerdamer.expressions()); nerdamer.flush(); //clear all expressions console.log(nerdamer.expressions());