How to create a password validation in javascript

By