This challenge was designed to allow the developer code a password generator while validating the password using Javasript.
This was aimed at helping me understand how to generate passwords as well as validating the password using the acceptance criteria provided; while developing the skills of independent research' logical thinking and problem solving.
In the course of this challenge i learnt the use of different array methods and properties such as .join
; length
. I also learnt how to use some JavaScript global methods and properties such as parseInt
and NaN
. This challenge helped me understand the concept of passwor valiation and the use of the While
statement.
Although this challenge was a bit though as i had to do lots of research on my own; I was able to carefully arrange the codes leaving comments where possible to make it understable and easy for it to be modified by anyone.
To run this web page, right click on the index.html file and open on a browser of your choice.
Click on the Generate Password
key, follow the prompts :
- Select a number from 8 - 128 for your password length;
- Click
ok
if you want an alphabet (upper or cased), number or special characters; - Click on
cancel
if you don't want any of the options. When you are done selecting your password options the password will be displayed in the Password box. The images belows gives you a step-by-step guide.
Credit to the Mila Hose (Tutor) that helped point me to the right direction.