Why console.log('10' > '5') is false in Javascript during type coercion

40 Views Asked by At

I am learning Javascript and was reading about type coercion. Why it's giving me false on console.log('10' > '5')

console.log('10' > '5')
console.log('23' > '18')

0

There are 0 best solutions below