JavaScript "Light Bulb" Moments: Tricky Comparison

added by JavaScript Kicks
12/7/2018 8:37:55 AM

1194 Views

Introduction I was recently debugging a strange issue in javascript which was somehow always happening for 2 digits numbers. This short post is the outcome of the learning process I went through in that debugging. I'll start with a bit of code. "7" > "6" - true"55" > "6" - false So the first one makes sense.


0 comments