Expert Developer JavaScript Question: Download Questions PDF
What is the difference between a null value and an undefined value?
Answer:
Null is used to assign an empty value to a variable and needs to be assigned manually.
Undefined values result when you declare a variable without assigning it a value. Undefined will be the default whenever you don't explicitly assign a value.
Undefined values result when you declare a variable without assigning it a value. Undefined will be the default whenever you don't explicitly assign a value.
Download Expert JavaScript Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
What is decodeURI() function? | What does the isNaN() function do? |