My JS Calculator project logic works!

Ive been brainstorming the last couple of days(or weeks already) with the Javascript Calculator project, the code essentially. First i made skeleton of the React app, to render the buttons and then i built the method to produce input for clicking different buttons. Then i built logic from scratch to calculate a string of valid expressions and return the result. I successfully implemented the calculate method to interact with the input after some polishing. Lastly i regulated a small regex value which served to track mathematical operators which caused the app to meet all FCC tests and im so happy and excited by the success! It surely isnt the most fluid code, but it works. Of coarse its far from finished and im yet to make the code more smooth and implement the appearance as well as additional features.

1 Like