$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · hard · #50

What is the output?

console.log(!!"false");
  1. false
  2. "false"
  3. undefined
  4. true
Any non-empty string is truthy, so it coerces to true.
Play Problem Solving ▸