$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · easy · #85

What is logged?

console.log('10' > '9', 10 > 9);
  1. false true
  2. true true
  3. false false
  4. true false
Two strings compare character by character, so '1' loses to '9'.
Play Problem Solving ▸