Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let a; // Initialized with undefined
- let b = null; // Explicit initialization with null
- console.log(a); // prints undefined
- console.log(b); // prints null
- console.log(a == b) // undefined == null prints true
- console.log(a === b) // undefined === null prints false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement