wiki/content/20201112105647-javascript_logical_operators.md

371 B

date id title
2020-11-12 bf07be35-319c-4a57-8ee5-658e4591ec8c JavaScript Logical Operators

Syntax

console.log(true && false)
console.log(true && true)
console.log(false || true)
console.log(false || false)

! is a unary operator that flips the value given to it

console.log(true && !true)
console.log(true && !false)