Learn JavaScript String Handling, Length method in JavaScript, JavaScript For Beginner
String Manipulation Properties & Methods:
1. length: It returns a string's total number of chars.
onkeyup will verify for every character immediately because every character i should count. for every character, it should be verified.
We have to collect the username and the error. while typing It has to verify
var msg = "Welcome";
msg.length; // 7