This project serves as the final milestone (Task 3) of my CodSoft Virtual Internship.
After mastering structure and design in my previous tasks, this project was dedicated to Algorithmic Logic. The goal was to build a fully functional calculator that doesn't just look good, but thinks correctlyโhandling user inputs, processing arithmetic operations, and returning accurate results in real-time.
Click here to try the Calculator (If the link doesn't work here, check the "About" section on the right side of this repository!)
- Arithmetic Operations: Performs addition, subtraction, multiplication, and division flawlessly.
- Responsive UI: A clean, grid-based layout that keeps buttons accessible and easy to read.
- Interactive Feedback: Buttons respond visually to clicks, providing a tactile feel to the web application.
- Error Handling: Handles basic calculation edge cases smoothly.
Transitioning from static pages to a dynamic application taught me the fundamentals of programming logic:
- DOM Manipulation: I learned how to "listen" to button clicks in HTML and trigger specific functions in JavaScript.
- String Parsing & Evaluation: Understanding how to take a string of text (e.g., "5+5") and process it as a mathematical equation.
- UI/UX Grid Systems: I used CSS Grid/Flexbox to ensure the keys were perfectly aligned, mimicking the familiarity of a physical calculator.
- State Management: Tracking the current input versus the stored result.
- HTML5: Structure of the display screen and keypads.
- CSS3: Styling the "look and feel," focusing on color contrast and button layout.
- JavaScript: The brain behind the calculator (handling the math logic).
- Clone the repository:
git clone https://github.com/tsdebug/codsoft_task-3.git
- Navigate to the project folder.
- Open
index.htmlin your browser.
Built to calculate, coded to learn.