js/app.js
//checks if user prompt can get the y/n answer, but makes sure its y/n
checks if user prompt can get the y/n answer, but makes sure its y/n
checks if user prompt can get the y / n answer but makes sure its y / n
function questionThree() {
  var superPower = prompt('Does Alex have super powers?');
  superPower = superPower.toLowerCase();
  console.log('Does Alex have super powers?; ' + superPower);
  if (superPower === 'y' || superPower === 'yes') {
    alert('He does, his power is to get to a restaurant right before a big line starts');
    correctGuesses = (correctGuesses + 1);
  }
  else if (superPower === 'n' || superPower === 'no') {
    alert('Actually, his power is to get to a restaurant right before a big line starts');
  }
  else {
    alert('I am not a very smart program, please keep responses to yes/no y/n.');
  };
}
function questionThree ( ) { var superPower = prompt ( 'Does Alex have super powers?' ) ; superPower = superPower . toLowerCase ( ) ; console . log ( 'Does Alex have super powers?; ' + superPower ) ; if ( superPower === 'y' || superPower === 'yes' ) { alert ( 'He does, his power is to get to a restaurant right before a big line starts' ) ; correctGuesses = ( correctGuesses + 1 ) ; } else if ( superPower === 'n' || superPower === 'no' ) { alert ( 'Actually, his power is to get to a restaurant right before a big line starts' ) ; } else { alert ( 'I am not a very smart program, please keep responses to yes/no y/n.' ) ; } ; }
checks if user prompt can get the y/n answer, but makes sure its y/n
checks if user prompt can get the y / n answer but makes sure its y / n