Giá trị false trong javascript

The following values are always false:
* false
* 0 (zero)
* "" (empty string)
* null
* undefined
* NaN (a special Number value meaning Not-a-Number!)

All other values are truthy, including "0" (zero in quotes), "false" (false in quotes), empty functions, empty arrays, and empty objects.

Nhận xét

Bài đăng phổ biến từ blog này

Model-View-Controller Component - Part 2 - Adding a Model

Model-View-Controller Component - Part 4 Creating an Administrator Interface

Here you must distinguish between the several partitions