Javascript – Unable to understand the difference between normal comparison of strings and comparison using localCompare() method as both works differently
`I am a newbie in JavaScript and to programming. Need assistance to clarify this doubt console.log('a'>'A'); This code returns True let result = 'a'.localeCompare('A'); console.log(result); console.log(Intl.DateTimeFormat().resolvedOptions().locale); This code returns -1 and my locale is en-IN This is creating a confusion…