Apply reduce method

Report a typo

What will the output of the following code be?

let languages = ["cpp", "javascript", "python", "kotlin"];

let langLength = languages.reduce(function(first, second) {
  return first + second.length;
}, 0);

console.log(langLength);
Enter a number
___

Create a free account to access the full topic