difference between null and undefined

liner

New member
Joined
Jun 13, 2024
Messages
3
Points
1
Can anyone explain the difference between null and undefined in JavaScript.
 

Fadel

New member
Joined
Jun 13, 2024
Messages
3
Points
1
Null is set by you. Undefined is unknown, unset.

There are cases in which you want something empty. That's null.
 

Dovie

New member
Joined
Jun 13, 2024
Messages
3
Points
1
You can literally make a quick google search or ask ChatGPT for the anwser,
Don't bother yourself/others with each mini question,
Just a small advice, it will buy you/us plenty of time
 
Top