I have array
var myarr = [ "color - black", "color - blue", "color - Red" ]
I want to replace " - " with ":" and capitalize the first letter
var myarr = [ "Color: black", "Color: blue", "Color: Red" ]
I try this but I don't know how to capitalize the first letter
for(var i=0; i < myarr.length; i++) {
myarr[i] = myarr[i].replace(/ - /g, ":");
}