let txt = "Hello World!";
txt = txt.toUpperCase();
/[A-Z]/ : 'must contain one uppercase'
/([a-z])/ : 'must contain one lowercase'
/(d)/ : 'must contain one number'
/(W)/ : 'must contain one special character'
let lowerCase = "javascript is fun!";
let upperCase = lowerCase.toUpperCase();
console.log(upperCase);
// "JAVASCRIPT IS FUN!" will log to the console
echo example | awk -F 'd' '{ print toupper($1)}'
EXAMPLE #Example first uppercased outputed
using System;
public class Demo {
public static void Main(){
bool res;
char val = 'H';
Console.WriteLine("Value = "+val);
res = Char.IsUpper(val);
Console.WriteLine("Is the value an uppercae letter? = "+res);
}
}
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(' '));
}
}