function displayYesNoButtons() {
//Yes button displayed
  var newButtonYes = document.createElement('BUTTON');
  newButtonYes.textContent = 'YES';
  yesButton.appendChild(newButtonYes);
//No button displayed
  var newButtonNo = document.createElement('BUTTON');
  newButtonNo.textContent = 'NO';
  noButton.appendChild(newButtonNo);
}
//Generate a yes and no button
Generate a yes and no button
Generate a yes and no button
function displayYesNoButtons() {
  var newButtonYes = document.createElement('BUTTON');
  newButtonYes.textContent = 'YES';
  yesButton.appendChild(newButtonYes);
  var newButtonNo = document.createElement('BUTTON');
  newButtonNo.textContent = 'NO';
  noButton.appendChild(newButtonNo);
}
function displayYesNoButtons ( ) { var newButtonYes = document . createElement ( 'BUTTON' ) ; newButtonYes . textContent = 'YES' ; yesButton . appendChild ( newButtonYes ) ; var newButtonNo = document . createElement ( 'BUTTON' ) ; newButtonNo . textContent = 'NO' ; noButton . appendChild ( newButtonNo ) ; }
Generate a yes and no button
Generate a yes and no button
//Yes button displayed //No button displayed