"use strict";
function carmalize(newArr)
{
for(var i = 1 ; i < newArr.length ; i++){
newArr[i] = newArr[i].charAt(0).toUpperCase();
}
return newArr[i].join(" ");
}
console.log(carmalize(["brett","john","peter"]));
I need to carmalize the first letter of each word in an array