Answers for "lexicographical order in javascript"

0

lexicographical order in javascript

'alpha' < 'zeta'; // true, because 'a' comes before 'z'
'alpha' < 'Zeta'; // false, because 'Z' = 90 in ASCII, and 'a' = 97
'one' < '1'; // false, because '1' = 49 in ASCII, and 'o' = 111

'octo' < 'okto'; // true, because 'c' = 99, and 'k' = 107
'a' < 'alpha'; // true, because end of string = '0' in ASCII
Posted by: Guest on July-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language