Front End Programmer Question: Download Front End Developer PDF
Explain what is 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 |
Explain what "this" is in JavaScript? | Tell me why do we recommend external CSS or Javascript versus inline? |