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

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

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -