javascript en majuscules
var str = "Hello World!";
var res = str.toUpperCase(); //HELLO WORLD!
Batman
var str = "Hello World!";
var res = str.toUpperCase(); //HELLO WORLD!
const name = 'flavio'
const nameCapitalized = name.charAt(0).toUpperCase() + name.slice(1)
let str = "Hello World!";
let res = str.toUpperCase();
console.log(res) //HELLO WORLD!
const toCapitalCase = (string) => {
return string.charAt(0).toUpperCase() + string.slice(1);
};
const names = ['Ali', 'Atta', 'Alex', 'John'];
const uppercased = names.map(name => name.toUpperCase());
console.log(uppercased);
// ['ALI', 'ATTA', 'ALEX', 'JOHN']
var string = "A string";
var upperCase = string.toUpperCase();
console.log(upperCase); // -> A STRING
var lowerCase = string.toLowerCase();
console.log(lowerCase); // -> a string