Coder Social home page Coder Social logo

calculator's Introduction

Calculator

My first JavaScript Project!!

A simple calculator application built with vanilla JavaScript, HTML, and CSS. This project allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.

Try It Out Here!! Don't try it with decimals or percentages though ๐Ÿคญ These may added in a future update ๐Ÿ˜Ž

Calculator

Features

  • Addition, subtraction, multiplication, and division operations
  • Clear the current input
  • Dynamic update of calculations
  • Basic keyboard support for inputs

Getting Started

Prerequisites

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/calculator.git
  2. Navigate to the project directory:
    cd calculator-main
  3. Open the project in VS Code:
    code .
  4. Start Live Server:
    • Open the index.html file.
    • Right-click on the file and select "Open with Live Server".

Usage

  1. Open the application in your web browser via Live Server.
  2. Use the calculator interface to perform basic arithmetic operations.
  3. Click on the "C" button to clear the current input.

File Structure

calculator-main/
โ”œโ”€โ”€ .github/
โ”‚   โ””โ”€โ”€ workflows/
โ”‚       โ””โ”€โ”€ static.yml
โ”œโ”€โ”€ .vscode/
โ”‚   โ””โ”€โ”€ settings.json
โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ img/
โ”‚   โ”‚   โ”œโ”€โ”€ Calculator.png
โ”‚   โ”‚   โ””โ”€โ”€ github-mark.png
โ”‚   โ”œโ”€โ”€ styles/
โ”‚   โ”‚   โ”œโ”€โ”€ main.css
โ”‚   โ”‚   โ”œโ”€โ”€ typography.css
โ”‚   โ”‚   โ””โ”€โ”€ variables.css
โ”‚   โ””โ”€โ”€ .DS_Store
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ main.js
  • .github/: Contains GitHub Actions workflows.
  • .vscode/: Contains settings for VS Code.
  • assets/: Contains images and styles for the application.
    • img/: Icons and images used in the application.
    • styles/: CSS files for styling the application.
  • index.html: The main HTML file for the application.
  • main.js: The JavaScript file containing the logic for the calculator.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes or enhancements.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any inquiries, please reach out to:

calculator's People

Contributors

davejamieson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.