js-assessment-part2

Solves equation in string format with parenthesis

Usage no npm install needed!

<script type="module">
  import jsAssessmentPart2 from 'https://cdn.skypack.dev/js-assessment-part2';
</script>

README

batch16-fe-activites

JS-Assessment

https://www.npmjs.com/package/js-assessment-part2

How to use:

Install package:

npm install js-assessment-part2

On your JavaScript file:

const package = require('js-assessment-part2');

console.log(package("100+1-(1+100-(1+100))")); <--- Use the string equation you want to evaluate as an argument

On your terminal run the above JS file:

node script.js