Skip to content

fortunatus-png/Simple-JavaScript-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

A simple web-based calculator built with HTML, CSS, and JavaScript.

Human-Written Code
This project was independently developed, using AI only as tool for troubleshooting and learning.
Hence this project demonstrates the acquired basic programming skills and an authentic learning progress.

Calculator screenshot

Features

  • Basic arithmetic operations: +, -, *, /, %
  • Square root calculation
  • Delete last character & clear input
  • Keyboard support for numbers and operators
  • Responsive layout with maximum input length based on screen size

Learning Goals

This project was created to practice collaboration between web technologies, with a focus on JavaScript:

  • Event listeners (click and keydown)
  • Loops (forEach)
  • Functions (modular handling of operations, clear, delete, and sqrt)
  • Input validation and responsive behavior

Usage

  1. Open index.html in a browser.
  2. Use the on-screen buttons or keyboard keys (0-9, +, -, *, /, %, s for √, Enter for =, Backspace, Delete).

About

A simple web-based calculator built with HTML, CSS and JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors