Comparing strings without conversion will result in a headache
If you were not careful when writing, you would not convert it, and then use it for rough testing,
1<2
Yes, that’s it
Then
5.002>21.003
Weird results occurred
When the data type is not converted to judge >, <, the system compares the unicode encoded value, and any result may occur
or
str1*1>str2*1
When comparing data in js, don’t forget to convert types!