code: function promisePrompt(questions) {
      return new Promise(function(resolve, reject) {
          inquirer.prompt(questions, function(results) {
              resolve(results);
          });
      });
  }
docs: Convert inquirer.prompt to a promise.