function writePassword() {
  var password = generatePassword();
  var passwordText = document.querySelector("#password");
  passwordText.value = password;
  return 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;
  return password;
}
function writePassword ( ) { var password = generatePassword ( ) ; var passwordText = document . querySelector ( "#password" ) ; passwordText . value = password ; return password ; }
Write password to the #password input
Write password to the #password input