text: var pingPong = function(userNumber) {
    var output = [];
    var loopCounter = 0;
    while(loopCounter < userNumber) {
      loopCounter = loopCounter + 1;
      if(loopCounter % 15 === 0) {
        output.push("pingpong");
      }
      else if(loopCounter % 5 === 0) {
        output.push("pong");
      }
      else if(loopCounter % 3 === 0) {
        output.push("ping");
      }
      else {
        output.push(loopCounter);
      }
    }
    return output;
  };
  
  $(document).ready(function() {
    $("form").submit(function(event) {
      $("ul li").remove();
      var userInput = $("input#input-number").val();
      var pingPongOutputs = pingPong(userInput);
      pingPongOutputs.forEach(function(pingPongOutput) {
        $("ul").append("<li>"+ pingPongOutput +"</li>");
      });
      event.preventDefault();
    });
  });
  