📜  大写 mdn - Javascript 代码示例

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

代码示例1
let string = "hello World!";

let capitalizedString = string[0].toUpperCase() + string.slice(1);

// capitalizedString => Hello World!