DEV Community

Discussion on: Let's build a basic calculator using flexbox and vanilla JavaScript

Collapse
 
conermurphy profile image
Coner Murphy

Great article. It's really helped me cement my understanding of concepts in JS that you didn't even directly cover like arrow functions. By reading others code and explaining it to myself it helps build that knowledge.

The only thing I wanted to question in regards to your calculator is how does it handle BODMAS / BIDMAS? Being unfamiliar with the eval() function does this include this logic? Or, would this need to be build in separately?

Once again, great article. 😀

Collapse
 
chrisblakely01 profile image
Chris Blakely

Hey! Thanks for your kind words, I'm glad this article was helpful to you. In regards to the BODMAS question, maybe this stackoverflow answer will help clarify for you:

stackoverflow.com/questions/303462...

Thanks again for reading!