Let's create some primitive variables. Let's start a good habit by using the keyword var
.
Make sure to complete your work in the console.
number
, and assign a number value to it.
var number = x;
boolean
, and assign a boolean value to it.string
, and assign a string value to it.
notDefined
, and don't assign any value to it.
undefined
is restricted, as it global variable used by JavaScript.validateVariables(number, boolean, string, notDefined);
.