Javascript Numbers

Overview

Javascript numbers come in one of two types.
Integers
Integers are numbers that represent whole numbers. They can be 0, positive or negative.


	let a = 10;
	let b = 12;
	let c = a + b;
	
Decimal (Floating Point)
A decimal is represented as a floating point number in Javascript. When a mathematical operation occurs that uses both decimals and integers, the integer is converted to a decimal first prior to the computation.


	let a = 1.4;
	let b = 2
	let c = a*b;