Shorthand for multiple 'or' condition checks
· ☕ 1 min read
Use this shortcut to do multiple checks in one go.
You have seen an or condition a billion times before, haven’t you?
1 2 3 4 5 6 const fruit = "apple"; let shape; if (fruit == "apple" || fruit == "orange" || fruit == "water melon") { shape = "round"; } console.