A simple calculator created with vanilla javascript, html & css. #Steps I took -
- add eventListener to each button
- add a calculate function
- catch values of button in side the function
- check if the answer is not empty then only do the calculation
- calculate and show the answer to answer input
- clear everything on display or
- concatenate it to the display