wiki/content/20201112105647-javascript_logical_operators.md

22 lines
371 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-11-12
2024-05-06 20:40:05 +00:00
id: bf07be35-319c-4a57-8ee5-658e4591ec8c
title: JavaScript Logical Operators
---
# Syntax
``` javascript
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
``` javascript
console.log(true && !true)
console.log(true && !false)
```