SHARE
TWEET

Untitled

a guest Oct 13th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let a; // Initialized with undefined
  2. let b = null; // Explicit initialization with null
  3.  
  4. console.log(a); // prints undefined
  5. console.log(b); // prints null
  6.  
  7. console.log(a == b) // undefined == null prints true
  8. console.log(a === b) // undefined === null prints false
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top