What is the output?
console.log('b' > 'a', 'B' > 'a');
- true false
- true true
- false false
- false true
Strings compare by code point, and every uppercase letter sorts below every lowercase one.
Play Problem Solving ▸
console.log('b' > 'a', 'B' > 'a');