How javascript reacts to different values to find if a condition is true or false.

Evaluates to  TRUE Evaluates  To FALSE
true false
Non Zero numbers 0
“Strings” “”
Objects undefined
Arrays Null
Functions NaN (Not a number)

Add a Comment

Your email address will not be published. Required fields are marked *