function captilize(str){
const lower = str.toLowerCase();
return str.charAt(0).toUpperCase() + lower.slice(1);
}
captilize("abu")
1. capitalize string in javascript.
No comments:
Post a Comment