mirror of
https://github.com/alrayyes/wiki.git
synced 2025-07-24 01:43:26 +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
23
content/20201112105310-javascript_comparison_operators.md
Normal file
23
content/20201112105310-javascript_comparison_operators.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
id: 0617f7af-2e55-40b5-b83a-6157703a9cd6
|
||||
title: JavaScript Comparison Operators
|
||||
---
|
||||
|
||||
# Operators
|
||||
|
||||
``` javascript
|
||||
console.log(4 >= 3)
|
||||
console.log(4 <= 3)
|
||||
console.log(4 == 3)
|
||||
console.log(4 != 3)
|
||||
console.log(0 == false)
|
||||
console.log(0 === false)
|
||||
console.log(0 != false)
|
||||
console.log(0 !== false)
|
||||
```
|
||||
|
||||
The only value in JavaScript that is not equal to itself is NaN
|
||||
|
||||
``` javascript
|
||||
console.log(NaN == NaN)
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue