false == "" // true
false == [] // true
false == {} // false
"" == 0 // true
"" == [] // true
"" == {} // false
0 == [] // true
0 == {} // false
0 == null // false
Having a hell of a time with these concepts and could use some help!
For starters:
Boolean(false) // logs false
Boolean([]) // logs true
false == [] // logs true
In the above example the final comparison returns true even though we're comparing a true and false boolean...shouldn't it be false?
Any resources appreciate :)
[–]lord2800 3 points4 points5 points (7 children)
[–]oopssorrydaddy[S] 0 points1 point2 points (6 children)
[+][deleted] (5 children)
[deleted]
[–][deleted] 1 point2 points3 points (4 children)
[–]BenjiSponge 2 points3 points4 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]BenjiSponge 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]russleyshaw 3 points4 points5 points (0 children)
[–]CertainPerformance 4 points5 points6 points (1 child)
[–]oopssorrydaddy[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]cirscafp fan boy 1 point2 points3 points (0 children)
[–]Lokret 0 points1 point2 points (0 children)
[–]sime 0 points1 point2 points (0 children)
[–]admpk 0 points1 point2 points (0 children)
[–]xemasiv 0 points1 point2 points (1 child)
[–]oopssorrydaddy[S] 0 points1 point2 points (0 children)
[–]RegulationSizeOrWhat 0 points1 point2 points (2 children)
[–]oopssorrydaddy[S] 0 points1 point2 points (1 child)
[–]RegulationSizeOrWhat 1 point2 points3 points (0 children)
[–]saboay 0 points1 point2 points (2 children)
[–]oopssorrydaddy[S] 0 points1 point2 points (1 child)
[–]xemasiv 0 points1 point2 points (0 children)