@maxinimize/

Exercise Type Coercion

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 7.1 MDN - Equality Comparisons
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness
// 7.2 JS Comparison Table
// https://dorey.github.io/JavaScript-Equality-Table/

console.log(false == "")
console.log(false == [])  
console.log(false == {}) 
console.log("" == 0) 
console.log("" == [])
console.log("" == {})
console.log(0 == [])
console.log(0 == {})
console.log(0 == null)
Native Browser JavaScript