Tell me difference between null and undefined?
Submitted by: MuhammadThis can be tricky and the best way to keep in your head is to memorise because if you try to relate javascript null to other languages, it will get more confusing.
In javascript, null is an object with no value and undefined is a type.
typeof null; // "object"
typeof undefined; // "undefined"
var a;
var b = null;
a == b; // "true" because their values are the same
a === b; // "false". they have different types
Submitted by: Muhammad
In javascript, null is an object with no value and undefined is a type.
typeof null; // "object"
typeof undefined; // "undefined"
var a;
var b = null;
a == b; // "true" because their values are the same
a === b; // "false". they have different types
Submitted by: Muhammad
Read Online Front End Web Developer Job Interview Questions And Answers
Top Front End Web Developer Questions
☺ | Tell us what Is The Difference Between Call And Apply? |
☺ | Tell me what Are This And That Keywords? |
☺ | What Is The Lazy Loading? |
☺ | Explain me what Is Cors? How Does It Work? |
☺ | Do you know what Is Ajax? Write An Ajax Call? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |