Pages

Calculator

 

How to Use

  1. Save the three code files as index.html, styles.css, and script.js in the same folder.

  2. Open index.html in a modern web browser.

  3. Use the buttons to perform calculations.

    • CE clears the display.

    • OFF turns off the display temporarily.

    • CORRECT removes the last character.

    • GT stores the current result in memory.

    • MU recalls the value from memory.

    • Replay shows the history of results.

    • Standard operators (+, -, /, *, %, =) work as expected.


Responsive Calculator