Skip to content

Shellsea31/Password_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password Generator

Description

This week’s homework required me to generate a random password based on criteria the user has selected. I had starter code to begin with, and added to it by creating a function which ...

  1. Prompt and confirm to allow user to decide length of password and types of characters.

  2. Variables used to make code concise and more readable.

  3. Conditional statements to alert user when input is invalid. Also used in combination with the push() method to combine all possible options based on users criteria.

  4. A while, for loop, and if statement to loop through users character options and select a random value each time.

  5. Return statements to stop the function from running if user does not confirm characters, or return value of new password to the function.

Once the new password had been generated and returned to the function I used the given started code to match the elements in the HTML to the value of said function, therefore displaying it to the screen.

Demo

shellsea31 github io_Password_Generator_

pass_gen

Create your own unique password by clicking here

Contributors

Shelsy Barrera

About

Keep all your secrets safe with this app ;)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published