Première lettre Tuuppercase
const string = "tHIS STRING'S CAPITALISATION WILL BE FIXED."
const string = string[0].toUpperCase() + string.slice(1)
putsan
const string = "tHIS STRING'S CAPITALISATION WILL BE FIXED."
const string = string[0].toUpperCase() + string.slice(1)
// name er first letter uppercase
let name = "aminul islam rasel" //Aminul Islam Rasel
let word = name.split(" ") // create array each word
word[0] = word[0].charAt(0).toUpperCase() + word[0].slice(1)
word[1] = word[1].charAt(0).toUpperCase() + word[1].slice(1)
word[2] = word[2].charAt(0).toUpperCase() + word[2].slice(1)
name = word.join(" ")// get Aminul Islam Rasel
console.log(name);//show console
// array map method use kore
let name = "abdur razzak hassan tusher mafus ulla"
let word = name.split(" ")
word = word.map(function (value) {
return value.charAt(0).toUpperCase() + value.slice(1)
})
name = word.join(" ")
console.log(name);