|
|
|
|
|
by fuzzythinker
1397 days ago
|
|
I would show examples in README on use of it along with string interpolation, as it's not too useful with only constants. Eg. const a = 3;
const b = 2;
const expression = new Expression(`${a}*${b}(6/3(5--2))`);
const result = expression.evaluate();
document.getElementById("app").innerHTML = `a*b( 6 / 3( 5 - - 2 ) )= ${result}`;
Edit: formating |
|