title: How do I return a string with an object in javascript?
body: <p>I'm trying to get this homework finished.  I'm stuck on the second one in which I have to return a string with the value of an object key.  I thought I had it right when I used this syntax for the name key.  However, even though the console.log showed the name, the results displayed that I did it wrong.  So I tried it the conventional way and got yet another error.  I'm stuck as to how they want me to do this.  It shouldn't really matter how I do it as long as it produces the same results, but I guess the school doesn't teach that.</p>
  
  <pre><code>/**
   * ### Challenge `getName`
   * 
   * @instructions
   * This function takes as its only argument
   * an object containing a `name` property,
   * and return a string that reads `Hello, my name is {name}`,
   * where `{name}` is the name stored in the object.
   * 
   * For example, if we invoke `getName`
   * passing { id: 1, name: 'Leia', email: 'leia@leia.com` } as the argument,
   * the returned value should look like `Hello, my name is Leia`.
  */
  
  
  function getName(name) {
  
    var hallo = {
  
      name: name
  
    };
  
   return 'Hello, my name is' + ' ' + hallo.name;
  }
  </code></pre>