📜  javascript代码示例中的首字母大写

📅  最后修改于: 2022-03-11 15:03:57.188000             🧑  作者: Mango

代码示例6
const string = "tHIS STRING'S CAPITALISATION WILL BE FIXED."
const string = string[0].toUpperCase() + string.slice(1)