var str = "Hello World!";
var res = str.toUpperCase(); //HELLO WORLD!
const names = ['Ali', 'Atta', 'Alex', 'John'];
const uppercased = names.map(name => name.toUpperCase());
console.log(uppercased);
// ['ALI', 'ATTA', 'ALEX', 'JOHN']
const string = "HeLLo woRld"
const uppercased = string.toUpperCase()
console.log(string)
// HeLLo woRld
console.log(uppercased)
// HELLO WORLD
const string = "A string";
const upperCase = string.toUpperCase();
console.log(upperCase); // -> A STRING
const lowerCase = string.toLowerCase();
console.log(lowerCase); // -> a string
let txt = "Hello World!";
txt = txt.toUpperCase();
.toUpperCase()
// Like this:
alert("In upper case: " + "my string".toUpperCase()); // In upper case: MY STRING
string a = "String";
string b = a.Replace("i", "o"); // Strong
b = a.Insert(0, "My "); // My String
b = a.Remove(0, 3); // ing
b = a.Substring(0, 3); // Str
b = a.ToUpper(); // STRING
int i = a.Length; // 6
//toUpperCase is a string method that returns the uppercased version of a specified string.
// We will use this to capitalize the first letter:
const firstLetter = "f"
const firstLetterCap = firstLetter.toUpperCase()
// F