Hello Everyone, I’m practicing through this activity (http://shorturl.at/cgtNS) Write a function called capitalize that takes a string and returns that string with only the first letter capitalized. Make sure that it can take strings that are lowercase, UPPERCASE, or BoTh.
and here is my solution to this activity
function capitalize(string){
return string.charAt(0).toUpperCase() + string.slice(1);
};
console.log(capitalize());`
which I’m not quite sure about it if that is what exactly the activity wants me to do.
any hint will be appreciated.