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

What is the output?

console.log(!!'false');
  1. true
  2. false
  3. undefined
  4. NaN
Any non-empty string is truthy, including the text "false".
Play Problem Solving ▸