//check falsy value using Boolean() //if it falsy it return false let falsyValue = [0, "", NaN, undefined, false, null, -0, 022, 100, {}, []] falsyValue.forEach(ele => { console.log(Boolean(ele)) })