Null vs Undefined in JavaScript - Explained Visually

Опубликовано: 31 Май 2026
на канале: Lucas Paganini
22,166
214

What's the difference between null and undefined in JavaScript? Do we need both?

📚 Read the article: https://www.lucaspaganini.com/academy...
🚨 Subscribe to the newsletter: https://www.lucaspaganini.com/newsletter

📧 Email: [email protected]
🐦 Twitter:   / lucaspaganini  
📸 Instagram:   / lucaspaganini  

----------

CHAPTERS
0:00 Introduction
0:44 Why We Need Both
1:49 typeof()
2:08 Falsy & Nullish
2:23 Conclusion

REFERENCES
1. Falsy values: https://developer.mozilla.org/en-US/d...
2. Nullish values: https://developer.mozilla.org/en-US/d...
3. Differences between null and undefined: https://developer.mozilla.org/en-US/d...
4. JavaScript primitives: https://developer.mozilla.org/en-US/d...