If (uppercaseABC = false & lowercaseABC = false & specialSymbols = false & numeric = false) Var keyLength = prompt("Password must be between 8 and 128 characters in length.") Var specialSymbols =" #$%^&*()?.|=+: ,"Īlert("Your password does not meet the critia") Var lowercaseABC ="abcdefghijklmnopqrstuvwxyz" Var uppercaseABC = "ABCDEFGHIJKLMNOPQRSTUVWXZ" Password variables for allowable passwords characters Var keyLength = prompt("Password must be between 8 and 128 characters! Click OK to continue") Var numbers = confirm("Your password should have a number! Click OK to continue") Var symbols = confirm("Your password should have a symbol! Click OK to continue") Var lowercase = confirm("Your password should have a lowercase letter! Click OK to continue") Var uppercase = confirm("Your password should have an uppercase letter! Click OK to continue") Critia prompts for password to generate Var generateBtn = document.querySelector("#generate") I will have all my codes below for each, (its the JavaScript I need all the help with), thank you in advance: HTML:īox-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px 0px īox-shadow: rgba(0, 0, 0, 0.1) 0px 1px 6px 0px rgba(0, 0, 0, 0.2) 0px 1px 1px When all prompts are answered, you will be provided with a password which is generated according to your responses.Whether you want the password to contain special characters.Whether you want the password to contain numbers.Whether you want the password to contain lowercase letters.Whether you want the password to contain uppercase letters.The desired password length (on the condition that it is between 8 and 128 characters long).You will be prompted with a series of questions regarding your password criteria (note, at least one must be selected, or else an error will pop up and the prompts will restart), including:.Once you have been redirected to the web-page, click on the "Generate Password" button. but my javascript code just isnt working for me. Hello, learning JavaScript for the first time and I am completely stuck at trying to figure out one of my first exercises.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |