Skip to content

Mem-Mori/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Calculator project with The Odin Project

https://www.theodinproject.com/courses/foundations/lessons/calculator

Final project for the Foundations course, an introductory course into HTML, CSS, and JavaScript.

Objective: To create a webpage based calculator that can process 2 number inputs with an operator input (i.e. 2 + 2) and display the answer.

Goals:

  1. Must be able to process addition, subtraction, multiplication, and division.
  2. Cannot use the eval() function built into JavaScript.
  3. Have a clear button that will wipe out any existing data.
  4. Display an error message when trying to divide by 0.

"Extra Credit"

  1. Add a decimal input to allow for entry of floating point numbers.
  2. Add a backspace button to delete the latest entry in case of an error in input.
  3. Add keyboard support.