title: Returning a value with node inquirer package
body: <p>I'm attempting to use the node.js inquirer package to run a simple flashcard generator. I'm having trouble getting the syntax to return the checkbox the user clicked. So, once the user makes a choice, I'd like to be able to log the result of that choice. Currently this console.log() returns "undefined". </p>
  
  <p>Any help appreciated!</p>
  
  <pre><code>inquirer.prompt ([
  {
  type: "checkbox",
  name: "typeOfCard",
  message: "Select an action.",
  choices: [
    {
      name: "Create a Basic Card"
    },
    {
      name: "Create a Cloze Card"
    },
    {
      name: "Run the flashcards!"
    }
   ]
    }
     ]).then(function(answers){
   console.log(answers.typeOfCard[0])
  });
  </code></pre>