Skip to content

It lets you do math with numbers and operators, just like a regular calculator.

License

Notifications You must be signed in to change notification settings

dev-alihasan/javascript_calcutor_code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

javascript_calcutor_code

It lets you do math with numbers and operators, just like a regular calculator.

Simple JavaScript Calculator

This is a simple JavaScript calculator that allows users to perform basic arithmetic operations - addition, subtraction, multiplication, and division. It provides a user-friendly web interface for performing calculations.

Features

  • Addition, subtraction, multiplication, and division operations.
  • User-friendly interface with clickable number and operator buttons.
  • Clear button to reset the input.
  • Dynamic result display as you perform calculations.

Getting Started

You can try out the calculator by opening the index.html file in a web browser or by deploying it to a web server.

Usage

  1. Click the number buttons to input numbers.
  2. Click the operator buttons (+, -, ×, ÷) to select the operation you want to perform.
  3. Click the "=" button to calculate the result.
  4. Click the "C" button to clear the input.

Code Structure

  • index.html: The HTML structure of the calculator interface.
  • style.css: The CSS stylesheet for styling the calculator.
  • script.js: The JavaScript code that powers the calculator.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or create a pull request.


Enjoy crunching numbers with your new calculator! 🧮