In this article I am giving a simple example to create the calculator in JavaScript. This calculator will only have the division, multiplication, addition, and subtraction operators
Example:
save as calculator.html
Output: Output of the above script is as follows: