5 lines
173 B
JavaScript
5 lines
173 B
JavaScript
capitalize = function(str1){
|
|
return str1.charAt(0).toUpperCase() + str1.slice(1);
|
|
}
|
|
|
|
console.log(capitalize('js string exercises'));
|