What am I doing wrong here?
If you pass [“Sue”, “Will”] it should return “SW”
If you pass [“Java”, Script", “Object”, “Notation”] it should return “JSON”
function acronym(arr){
let str = '';
for(let i = 0; i < arr.length; i++){
str += arr[i][0];
}
return str;
};