programming-examples/js/String/Uncapitalize the first character of a string.js

4 lines
145 B
JavaScript
Raw Normal View History

2019-11-15 12:59:38 +01:00
function Uncapitalize(str1){
return str1.charAt(0).toLowerCase() + str1.slice(1);
}
console.log(Uncapitalize('Js string exercises'));