Hey there! I'm in need of some assistance to correct my code so it can perform the task described in the text below:
function convertString(str) {
var parts = str.split('-');
for (var i = 1; i < parts.length; i++) {
return parts[i].charAt(0).toUpperCase() + parts[i].slice(1);
}
}
convertString("background-color") == 'backgroundColor'
convertString("list-style-image") == 'listStyleImage'