Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const bestFruit = 'avocado'
- const worstFruit = ''
- if (bestFruit) // true
- if (worstFruit) // false
- if (bestFruit / 2) // false (NaN)
- let mango
- let watermelon = null
- if (mango) // false
- if (watermelon) // false
- const myFruit = {}
- const allMyFruits = []
- if (myFruit) // true
- if (allMyFruits) // true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement