Skip to content

olhanotolga/js-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS Calculator

Description

This is a simple calculator app created with HTML, CSS, and vanilla JS as a FrauenLoop student practice project.

JS Calculator

JavaScript calculator: screenshot

Features

  • Performs addition, subtraction, multiplication, and division

  • Support of multi-digit numbers

  • Additional buttons and functionality:

    • , — adds a floating point
    • +/- — changes the sign
    • % — converts to percentage
  • Support of chained calculations (no need to press/click/tap = every time)

  • Automatic reset when starting a new calculation (no need to press/click/tap AC each time)

  • More or less well-behaving floats

  • Breaks down spectacularly upon dividing by zero 💥:bomb:💥

  • Responsive layout

Code

HTML, CSS (with Flexbox, Grid, and media queries), JavaScript (ES6)