Assignment003J
JavaScript Variable Types
There are 3 different types of JavaScript variables we will be using in this class.
One of the variable types stores the following types of values:
x = 17,
y = 16,
z = 15.
all are examples of integers.
The same variable type can also store the following values:
a = 5.2,
b = 3.5,
c = 8.14.
all are examples of decimals.
Both of these variables types are considered NUMBERS in JavaScript.
There is also another type that only stores true or false values. For example:
isDead = false,
mad = false,
endOfGame = true.
This type of variable is considered a BOOLEAN in JavaScript.
The final variable type we use in this class is used to store one or more characters. For example:
name = "Claudia Medina",
school = "Coalinga High School",
schoolID = "0000000".
Notice that we can store a string of characters, therefore we call this variable type a STRING.
For this assignment create code to display these three variables types using an alert box.