function passwordOptions() {
  let passwordLength = parseInt(
    prompt("How many characters would you like to use between 8 and 128?")
  );

  if (passwordLength > 7 && passwordLength < 129) {
    let uppers = confirm("Would you like to use uppercase letters?");
    let lowers = confirm("Would you like to use lowercase letters?");
    let nums = confirm("Would you like to use numbers?");
    let specials = confirm("Would you like to use special characters?");

    let options = {
      strength: passwordLength,
      uppers: uppers,
      lowers: lowers,
      nums: nums,
      specials: specials,
    };
    //Sends the user password options out to generatePassword()
    return options;

  } else {
    alert("Please enter a number between 8 and 128");
  }
}
//have the generate button ask about the different types of characters to use
have the generate button ask about the different types of characters to use
have the generate button ask about the different types of characters to use
function passwordOptions() {
  let passwordLength = parseInt(
    prompt("How many characters would you like to use between 8 and 128?")
  );
  if (passwordLength > 7 && passwordLength < 129) {
    let uppers = confirm("Would you like to use uppercase letters?");
    let lowers = confirm("Would you like to use lowercase letters?");
    let nums = confirm("Would you like to use numbers?");
    let specials = confirm("Would you like to use special characters?");
    let options = {
      strength: passwordLength,
      uppers: uppers,
      lowers: lowers,
      nums: nums,
      specials: specials,
    };
    return options;
  } else {
    alert("Please enter a number between 8 and 128");
  }
}
function passwordOptions ( ) { let passwordLength = parseInt ( prompt ( "How many characters would you like to use between 8 and 128?" ) ) ; if ( passwordLength > 7 && passwordLength < 129 ) { let uppers = confirm ( "Would you like to use uppercase letters?" ) ; let lowers = confirm ( "Would you like to use lowercase letters?" ) ; let nums = confirm ( "Would you like to use numbers?" ) ; let specials = confirm ( "Would you like to use special characters?" ) ; let options = { strength : passwordLength , uppers : uppers , lowers : lowers , nums : nums , specials : specials , } ; return options ; } else { alert ( "Please enter a number between 8 and 128" ) ; } }
have the generate button ask about the different types of characters to use
have the generate button ask about the different types of characters to use
//Sends the user password options out to generatePassword()