Skip to content

SecurityTalent/BasicCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vanilla JavaScript Basic Calculator

This project is a simple calculator built with vanilla JavaScript, HTML, and CSS. It performs basic arithmetic operations: addition, subtraction, multiplication, and division.

Features

  • Addition, subtraction, multiplication, division
  • Responsive and clean UI
  • Keyboard and button input support

Usage

  1. Open index.html in your browser.
  2. Use the buttons or your keyboard to enter numbers and operations.
  3. Click = or press Enter to see the result.
  4. Use C or Clear to reset the calculator.

Files

  • index.html — Main HTML file
  • style.css — Calculator styles
  • script.js — Calculator logic

How It Works

  • User input is displayed on the screen.
  • JavaScript handles all calculations and updates the display.
  • No external libraries or frameworks used.

Demo

Calculator Screenshot


Feel free to modify and enhance the calculator!

About

Basic Calculator -vanilla Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published