$('#pwd').keyup( function() {
    const pass = $(this).val();

    let regex = new Array();
    regex.push('[A-Z]'); //Uppercase Alphabet.