JavaScript Variables: Initialization, Booleans, and Numbers
Uninitialized variables show as a type of undefined. So do variables that haven’t been declared at all. We should always initialize variables so that we know that undefined means we haven’t declared the variable. null is an empty object pointer. We should initialize objects to null so that the typeof will return the correct data …
JavaScript Variables: Initialization, Booleans, and Numbers Read More »