Skip to content

gunash-portfolio/Calculator-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Calculator Project

This is a basic calculator project written in JavaScript. It can perform the following operations:

  • Addition
  • Subtraction
  • Multiplication
  • Division

Installation

  1. Clone this repository: git clone https://github.com/gunash-portfolio/Calculator_js.git
  2. Navigate to the project directory: cd Calculator_js
  3. Open the calculator.html file in your web browser.

Usage

  1. Enter the first number.
  2. Enter the second number.
  3. Choose an operation (+, -, *, /).
  4. Click the "Add", "Subtract", "Multiply", or "Divide" button.
  5. The calculator will output the result of the operation.

Built-in Functions Used

The following built-in functions were used in this project:

  • onclick(): This function is used to execute a JavaScript code when a button is clicked.
  • getElementById(): This function is used to get the value of an HTML element by its ID.
  • innerHTML: This property is used to set or get the HTML content of an element.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages