Javascript: Numbers
All numbers in Javascript are floating-point, which means that they may or may not have a fractional component. The following are valid numbers:
var age = 535;
var length = 7009877.92;
var width = 0.0003;
var position = -22;
All numbers in Javascript are floating-point, which means that they may or may not have a fractional component. The following are valid numbers:
var age = 535;
var length = 7009877.92;
var width = 0.0003;
var position = -22;