The result of the comparison "abcd" > "Abcd"
will be:
"abcd"
true
false
1
Answers Explanation & Hints:
The result of the comparison When comparing strings in JavaScript using the greater-than operator ( In this case, comparing the strings “abcd” and “Abcd” character by character, the first differing characters are “a” and “A”. In Unicode, the lowercase letters have higher values than uppercase letters. Therefore, “a” is greater than “A” in lexicographic order. Since the first differing character (“a”) in the first string is greater than the corresponding character (“A”) in the second string, the comparison evaluates to To illustrate this in code: console.log("abcd" > "Abcd"); // Output: true So, the correct answer is |