I am creating a function in jquery
where the user typing their password, this function identifies how many uppercase characters there are in this password, in order to calculate the strength of that password.
I even managed to make this function count the uppercase characters, but I still could not get the desired result.
For example, the function can count the uppercase characters when they are at the beginning of the password, but if the user types a lowercase character, the next uppercase characters will not be counted, and that is where the problem arises.
Here is the test link that I ran: Here! .