javascript - Why does "10" > "9" = false? -


is failure in javascript's attempt convert them numbers? if so, numbers being converted to? or logic behind string 10 being less string 9?

it's comparing strings "alphabetically", , 1 comes before 9 in character "alphabet".


Comments

Popular posts from this blog

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -