Calculator JavaScript

Download Category:

calculatorJS.zip - (18.88 KB)
[
calculatorJS/calculatorJS.html
calculatorJS/Question.txt
calculatorJS/Screenshot_2.jpg
]

Create a very simple four function integer calculator with buttons for Add, Subtract, Multiply, and Divide, and with two text-type input fields. When the user enters two numbers and clicks one of the buttons, the answer is displayed where shown.
Your program must use an alert to tell the user about any errors. The possible errors include:
– One or both input fields are blank
– One or both input fields < -9999 or greater than 9999 - Divide by zero - Illegal character in either input field. Only 0, 1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9, and – are allowed.

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.