We think of variables as , they can contain a specific value.
If we initiate a new variable but do not assign it a value yet (e.g. var myNewVariable;), what value would this variable contain?
"" (an empty string)
undefined
null
Which of the below demonstrates good variable naming conventions?
var #1bestnameever = "Bob";
var firstName = "Bob";
var first name = "Bob";
var n = "Bob";
We bind a value to a variable using the assignment equals( assignment, equals ) operator.
After a variable has been assigned a value, it cannot be changed.