Calculate

Created the design with the HTML Table where first is holding the input field with id=”result” and the rest are filled with input button. With every click of the button, it displays the respective value of the button to the input field by using the function dis(). myFunction() is used to set the value pressed from the keyboard to the same input field. Calculation of the numbers can be done by both the “Enter” key as well as the “=” button on the Calculator UI. The solve() function is evaluating the result with the math.evaluate() and display the final answer to the input field with id=”result”. clr() function is also defined to clear the input field. Example:
Output:

Comments

Popular posts from this blog

weight loss

Good thing it doesn’t mess with fall fashion

Environmentally Household Cleaners