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);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);Create a free account to access the full topic