wiki/content/20201112105310-javascript_comparison_operators.md

25 lines
425 B
Markdown
Raw Permalink 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: 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)
```