title: Using nested function with dot operator in js
body: <p>Hey guys am new to javascript app development..My code</p>
  
  <pre><code>var obj = {
      models: "AN",
      collection: {},
      person: {},
  
      changeDetails: function(values, babes) {
          obj.person.name = values.name;
          obj.person.age = values.age;
      }
  
      babe: function() {
          return 5;
      }
  };
  </code></pre>
  
  <p>When i called it like <code>obj.changeDetails({name:"George",age:20}).babe());</code> it throws me error like <code>Uncaught SyntaxError: Unexpected identifier</code> </p>
  
  <p>Is it possible in javascript to call like <code>objectname.functionname.().anotherfunctionname()</code>??.If its possible please post it as an answer showing its demonstration..</p>
  
  <p>Thanks</p>