Question: This is to build a calculator Web applicaiton.(html, CSS, and JavaScript) The page must feature a calculator that has buttons so users can enter any
This is to build a calculator Web applicaiton.(html, CSS, and JavaScript)
The page must feature a calculator that has buttons so users can enter any positive integer. It also needs to support the following mathmatical functions: addition, subtraction, multiplication, and division. As well as an equal button so that it performs the operations and a clear button to clear out the user input.
Like a simple calculator, the user should be able to click buttons to enter a number, and then press an operation and then key in another number. If the user clicks the equal button, it will perform the operation. However, the user can choose to do another mathematical operation instead, so they can perform complex operations.
If the user clicks the enter button and receives their results, they can choose to do another mathematical operation on the number or enter in a new number that replaces the old. This functionality should be similar to default Windows calculator in the regard.
Rejections
You use inline CSS or JavaScript. You have CSS outside of the head tag. You use any third party JavaScript libraries(third party CSS librarys are okay). You don't enable JavaScript's strict mode. You use var instead of let. You don't use the EventListener API.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
