Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Latest commit

 

History

History
11 lines (9 loc) · 310 Bytes

File metadata and controls

11 lines (9 loc) · 310 Bytes

The null value in Javascript represents the intentional absence of an object value. It is one of Javascript's primitive types.

// I do not have an apple.
var apple = null
apple // => null

// null is treated as falsy for boolean operations, therefore
!apple // => true
!!apple // => false