const str =
'hello world'
;
const capitalizedStr = str.charAt(0).toUpperCase() + str.slice(1);
console.log(capitalizedStr);
// "Hello world"