|
Back |
Boolean
|
|
Must be yes or no, on or off, true or false
|
someVar = true
|
Null
|
|
Empty
|
varTest = null
|
Numeric
|
Integer
|
Positive or negative numbers with no decimal places
|
varNum = 5
|
|
Floating-point
|
Positive or negative numbers with decimal places, or numbers written using exponential notation
|
accum = 4.554 amt = 65.342 distance = 2e11
|
|
Special numbers
|
NaN infinity (or MAX_VALUE or POSITIVE_INFINITY) -infinity (or MIN_VALUE or NEGATIVE_INFINITY)
|
ValType = NaN highNum = Infinity highNegNum = -Infinity
|
String
|
|
A string is a set of continuous characters surrounded by quotation marks
|
productName = "JsMadeeasy.com"
|
Undefined
|
|
A variable that has been declared but not yet assigned a value
|
var I
|
|