function createMultiple() {
  var num = parseInt(prompt("How many Pacmen do you want?"));
  if (num === NaN) {
    alert("You must enter an integer.");
  } else if (num <= 0 || num > 100) {
    alert("You must enter a number between 1 and 100");
  } else {
    for (let i = 0; i < num; i++) {
      makeOne();
    }
  }
}
// creates one or more pacmen based on the number entered by the user
creates one or more pacmen based on the number entered by the user
creates one or more pacmen based on the number entered by the user
function createMultiple() {
  var num = parseInt(prompt("How many Pacmen do you want?"));
  if (num === NaN) {
    alert("You must enter an integer.");
  } else if (num <= 0 || num > 100) {
    alert("You must enter a number between 1 and 100");
  } else {
    for (let i = 0; i < num; i++) {
      makeOne();
    }
  }
}
function createMultiple ( ) { var num = parseInt ( prompt ( "How many Pacmen do you want?" ) ) ; if ( num === NaN ) { alert ( "You must enter an integer." ) ; } else if ( num <= 0 || num > 100 ) { alert ( "You must enter a number between 1 and 100" ) ; } else { for ( let i = 0 ; i < num ; i ++ ) { makeOne ( ) ; } } }
creates one or more pacmen based on the number entered by the user
creates one or more pacmen based on the number entered by the user