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

What is the output?

const b: boolean = Boolean("");
console.log(b);
  1. true
  2. false
  3. ""
  4. undefined
The empty string is falsy, so it becomes false.
Play Problem Solving ▸