Basic JavaScript Question:
Download Job Interview Questions and Answers PDF
What is the difference between undefined value and null value?
Answer:
(i) Undefined value cannot be explicitly stated that is there is no keyword called undefined whereas null value has keyword called null
(ii) typeof undefined variable or property returns undefined whereas typeof null value returns object
(ii) typeof undefined variable or property returns undefined whereas typeof null value returns object
Download JavaScript Interview Questions And Answers
PDF
Previous Question | Next Question |
What does undefined value mean in JavaScript? | What is variable typing in JavaScript? |