Building JavaScript Calculator: is it fine to use external libraries?

Tell us what’s happening:


Currently I’m building a calculator with React for the Front-End Certificate and I was wondering whether it would be fine to use some external libraries for evaluating the total? For example, right now my app is storing a string of all numbers and math operations that user has entered. I understand that further calculation could be done with vanilla JS, but also I found that there are some libraries like math.js that can do the same. Should I be able to use those libraries for my project or would it be considered as cheating and should do it with vanilla JS?

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36.

Challenge: Build a JavaScript Calculator

Link to the challenge:

There are no restrictions on what you use to build it. Also, something like math dot js would allow you to build out much more complex functionality than just the basic add/subtract/multiply/divide operations, so that would be something to think about

1 Like