Abstract
- Just a list of weird syntax I faced when I was playing with JS
Logic
!undefined
is true
, but undefined
isn’t rended as false
null
vs undefined
null
is often used explicitly to indicate this absence
undefined
is usually a default state for variables that have not been assigned a value