string huruf besar
let txt = "Hello World!";
txt = txt.toUpperCase();
MD RAZZAK
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'
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('\n'));
System.out.println(Character.isUpperCase('\t'));
}
}