Can someone please explain JavaScript Truthy and Falsy, using the below sample data. I have read other threads but still confused.
var a = 0; var a = 10 ==
Truthy -> Value that resolve to true in boolean context
Falsy -> Value that resolve to false in boolean context
For better understanding, falsy values is given below.
falsy
false
0
empty string
null
undefined
NaN