Truthy vs Falsy Values In JavaScript, when used inside a condition, a value is considered to be truthy if it yields in a true condition. Otherwise it is regarded as a falsy value. There are some fixed falsy values in JS: false, 0, -0, ‘’, null, undefined and NaN. Double equal(==) vs Triple equal(===) There is a subtle difference…