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

What is the output?

const arr = [1, 2, 3];
console.log(arr.length);
  1. 2
  2. 3
  3. 4
  4. [1,2,3]
The array has 3 elements.
Play Problem Solving ▸