JavaScript Interview: null vs undefined

⚡ JavaScript Interview Question Day 1: What is the difference between: null vs undefined ? Quick explanation 👇 undefined ------------- • Variable declared but not assigned Example: let a; console.log(a) // undefined null ------ • Intentional absence of value Example: let user = null 💡 Tip: undefined → system assigned null → developer assigned #javascript #frontend #codinginterview #programming #interview #react #angular #performance #UI

To view or add a comment, sign in

Explore content categories