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

What is the output?

console.log("JS".length);
  1. 2
  2. 1
  3. 3
  4. undefined
The string "JS" has 2 characters.
Play Problem Solving ▸