mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 06:26:22 +00:00
354 B
354 B
id | title |
---|---|
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)