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 -

commonjs - How to write a typescript definition file for a node module that exports a function? -

verilog - Systemverilog dynamic casting issues -