Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7
This is how javascript sees it: 12<6 : false false < 9 : true The reason false is < 9 is because when you compare it to numbers, it takes the value 0, so it's like saying: 0<9, which is true To check that, try running: console.log(12<6==0) this will output true
15th Nov 2019, 7:49 PM
Aymane Boukrouh
Aymane Boukrouh - avatar