$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · medium · #99

What is the output?

console.log('a,b,,c'.split(',').length);
  1. 4
  2. 3
  3. 5
  4. 2
The empty field between the two commas is kept as an empty string.
Play Problem Solving ▸