jQuery Calculator

Overview

Functioning calculator made by using js logic.

date

February 2017

tools used

HTML, CSS & jQuery

Instructions

Using basic jQuery to gather the first number by using text() method. Once an operator is pressed create a new number variable. Finally on click of equals combine the two numbers by if else statements making use of the operators between the two numbers.

Learnt

Updating html on click, combining two variables, iF else statements, click functions & math operators.

See the Pen JS Calculator by Harry Beckwith (@fun) on CodePen.

← Back to all projects