Use the length property of string in javascript.
Chat with our AI personalities
This question is too broad, be more specific.
For a username, just get the username from the standard input using scanf and check whether this username matches with the username stored. If it doesn't match, then the username is wrong.For a password, get each character using getch(). Print a * for each character obtained. Now check this password with the stored password. If these don't match, then the password is wrong.
No, use asp
It saves time and also user doesn't have to write the password somewhere or memorize it. Though for security reasons it is a bad practice. Putting password on a browser's password list or storing it inside local computer using cookies is a bad idea. Security is jeopardized if other users or hackers gain access to those files.
A JavaScript certificate document is a document that proves you have all knowledge needed to master web development by using the Javascript and also HTML/DOM.