function makeTitle(str) {
let arr = str.split(' ');
for(let i=0; i<arr.length; i++) {
arr[i][0] = arr[i][0].toUpperCase();
}
return arr;
}
makeTitle("This is a title")
//➞ "This Is A Title"
Hey guys, why isn't this changing the first letter of every word in the array? When I console.log it, I can see it selects 'T' 'i' 'a' and 't' like its supposed to. So why doesn't it change their values?