![]() There is also the option to exclude similar and ambiguous characters. Secure password generator has options to include upper and lower case letters, numbers, and symbols so you can create a custom password for yourself. Play with it and I hope you post whatever you come up with on here so we can see how you approached it.The free password generator generates a 16 character password by default, but you can change the password length to generate an 8 character password or as many as 2048 characters. Spending some time organizing and thinking about these smaller applications can pay off big time later down the road. Would it make sense to group similar functions into a data structure like a list?.an object? You are also needing to validate these inputs, would it make sense to also group validating functions into an iterable data structure? You are needing to collect data from a user. Determine what your data is and what functions (methods) you are needing to perform. This could be a passwordGenerator object, or create one. I think the steps are not very clear at this point, but writing the logic out step by step will help you see some things.Īfter you determine the steps needed, then think about how to structure the code. Write pseudo code for this and post it here if you like. Instead of diving into this I am going to give you some advice on how to break down the problem, which can be applied to this problem, and any problem you have in the future. GenerateBtn.addEventListener("click", writePassword) ![]() Var passwordText = document.querySelector("#password") or finalPassword += possibleCharacters įinalPassword = finalPassword + multiSelect If (uppercaseABC = false & lowercaseABC = false & specialSymbols = false & numeric = false) Var keyLength = prompt("Password must be between 8 and 128 characters in length.") Var specialSymbols numeric ="0123456789"Ī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:ī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Īnd lastly my JAVASCRIPT: // Assignment Code When all prompts are answered, you will be provided with a password which is generated according to your responsesĪny help would be very appreciated. ![]() 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, I am very new to learning JavaScript 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 |