mirror of
https://github.com/alrayyes/wiki.git
synced 2025-07-23 01:13:27 +00:00
Quartz sync: May 6, 2024, 10:40 PM
This commit is contained in:
parent
aee9145691
commit
4ef8371441
635 changed files with 22281 additions and 6 deletions
20
content/20201112105647-javascript_logical_operators.md
Normal file
20
content/20201112105647-javascript_logical_operators.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
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)
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue