0
Why output is true?
alert('nine' < 'seven') Why output is true? Thanks!
2 Respuestas
+ 5
Strings are compared using their alphabetical order. 'nine' starts with 'n', which comes before 's', so 'nine' < 'seven'.
+ 2
Thanks
alert('nine' < 'seven') Why output is true? Thanks!