my html code is like:
When you compare two strings in an if statement:
if ( l > h) {} when l = "12" and h = "112"
It compares these two values as strings as "3" > "1". It says l > h is true
"3" > "1"
l > h