let txt = "Hello World!";
txt = txt.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
const upperCase = function(names){
const toLower = names.toLowerCase().split(' ');
const namesUpper = [];
for(const wordName of toLower){
namesUpper.push(wordName[0].toUpperCase() + wordName.slice(1));
}
return namesUpper.join(' ');
}
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
/[A-Z]/ : 'must contain one uppercase'
/([a-z])/ : 'must contain one lowercase'
/(d)/ : 'must contain one number'
/(W)/ : 'must contain one special character'
public class Test {
public static void main(String args[]) {
System.out.println(Character.isUpperCase('c'));
System.out.println(Character.isUpperCase('C'));
System.out.println(Character.isUpperCase('
'));
System.out.println(Character.isUpperCase(' '));
}
}