str.toLowerCase()
str.toUpperCase()
function changeToUpperCase(founder) {
return founder.toUpperCase();
}
// calling the function
const result = changeToUpperCase("Quincy Larson");
// printing the result to the console
console.log(result);
// Output: QUINCY LARSON
let myGreeting = 'Hey there!';
console.log(myGreeting.toLowerCase());
//output
//hey there!
function capitalizeWords(string) {
return string.replace(/(?:^|s)S/g, function(a) { return a.toUpperCase(); });
};
const upperCase = (string) => {
const newText = string.toUpperCase();
return newText;
};