How abhilasha-sou/calculator works
This is a tiny browser calculator. Its workflow appends user-entered values to a display, clears that display, or evaluates its current text and replaces it with the result. The only source excerpt shows these operations and their shared DOM target; the HTML and CSS were not provided, so the page structure, controls, and event wiring cannot be verified.
Main entry points: index.js Display field
Components 5
Calculator
- Display field
index.js - Append input
index.js - Clear display
index.js - Evaluate input
index.js
Other components
- User
Connections 3
- Append input → Display field: appends value
index.js - Clear display → Display field: clears value
index.js - Evaluate input → Display field: reads and replaces
index.js