How to Create a Password Validation Form in JavaScript?

How to Create a Password Validation Form in JavaScript?