if condition execution

true
if (true) { /* Executes */ }
false
if (false) { /* Dees not Executes */ }
1
if (1) { /* Executes */ }
0
if (0) { /* Dees not Executes */ }
-1
if (-1) { /* Executes */ }
"true"
if ("true") { /* Executes */ }
"false"
if ("false") { /* Executes */ }
"1"
if ("1") { /* Executes */ }
"0"
if ("0") { /* Executes */ }
"-1"
if ("-1") { /* Executes */ }
""
if ("") { /* Dees not Executes */ }
null
if (null) { /* Dees not Executes */ }
undefined
if (undefined) { /* Dees not Executes */ }
Infinity
if (Infinity) { /* Executes */ }
-Infinity
if (-Infinity) { /* Executes */ }
[]
if ([]) { /* Executes */ }
{}
if ({}) { /* Executes */ }
[[]]
if ([[]]) { /* Executes */ }
[0]
if ([0]) { /* Executes */ }
[1]
if ([1]) { /* Executes */ }
NaN
if (NaN) { /* Dees not Executes */ }