console.log("5" > "11") =>true console.log("5" > 11) =>false console.log(" " > -1) =>true console.log("you " > 1) =>false Ans: for string letter by letter comparison takes place, when values of different types are compared, and they get converted int...
Markdown supported · ⌘↵ to post
No responses yet.