title: Javascript multiple methods
body: <p>I'm new to javascript and I'm trying to figure out how to do something like this</p>
  
  <pre><code>SomeClass = {
  
      confirm: function(){
          if(!confirm('Sure?'))
          {
              return false;
          }
      },
  
      someMethod: function(){
          alert("OK");
      }
  
  }
  </code></pre>
  
  <p>And this is what I actually want to do</p>
  
  <pre><code>SomeClass.confirm().someMethod();
  </code></pre>
  
  <p>In fact i need to confirm an action just by adding  .confirm() in front of the actual method. Is that even possible?</p>