Front End Programmer Question:
Explain what is the Difference between null and undefined?
Answer:
null is an object with no value. undefined is a type.
typeof null; // "object"
typeof undefined; // "undefined"
typeof null; // "object"
typeof undefined; // "undefined"
Previous Question | Next Question |
What is variable scope? | Explain what is the lazy loading? |