function writePassword() {
  var password = generatePassword(); //define

  //pw generated after all selected 

  // password should be written on page or displayed as an alert when generated 

  var passwordText = document.querySelector("#password"); //define

  passwordText.value = password;


}
// Write password to the #password input
Write password to the #password input
Write password to the #password input
function writePassword() {
  var password = generatePassword(); 
  var passwordText = document.querySelector("#password"); 
  passwordText.value = password;
}
function writePassword ( ) { var password = generatePassword ( ) ; var passwordText = document . querySelector ( "#password" ) ; passwordText . value = password ; }
Write password to the #password input
Write password to the #password input
//define //pw generated after all selected  // password should be written on page or displayed as an alert when generated  //define