Falsy values

The following values are described as falsy values (also known as false):

1. undefined
2. null
3. an empty string ""
4. false
5. 0
6. NaN

All other values,other than these including all object evaluates true which are passed to a conditional statement.

No comments:

Post a Comment

Overview of AngularJS

AngularJS is an open source web application framework. It is now maintained by Google . The most of the code can be eliminated by using th...