title: Javascript Objects - is not a function
body: <p>I am working my way through objects and I come across this example on codeacademy, bob was pre-done, and my goal was to replicate susan and set her age to 35. I prefered to use the literal notation, but I get an error(susan.setAge is not a function). Why doesn't it recognize setAge as a function now?</p>
  
  <pre><code>// here we define our method using "this", before we even introduce bob
  var setAge = function (newAge) {
    this.age = newAge;
  };
  // now we make bob
  var bob = new Object();
  bob.age = 30;
  bob.setAge = setAge;
  
  // make susan here, and first give her an age of 25
  var susan = {
    age: 25  
  };
  // here, update Susan's age to 35 using the method
  susan.setAge(35);
  </code></pre>