title: Adding additional functions to object literals after it has been created
body: <p>So I was wondering whether this is the right way to add functions to an object created through object literals.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var person = {
    firstname: "default",
    lastname: "default",
    greet: function () {
      return "hi " + this.firstname;
    }
  }
  
  var me = Object.create(person);
  
  me.myFunction = function() {
    return console.log("meow");
  };
  
  console.log(me.myFunction());</code></pre>
  </div>
  </div>
  </p>
  
  <p>However it returns an undefined after meow, is there any reason why it would do so?</p>