title: Call another object's method in another object
body: <p>How does one call another object's method in the current method?</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>function OjbectA() {}
  
  ObjectA.prototype.doWork = function () {
    alert('do work');
  }
  
  var objectA = new ObjectA();
  
  function ObjectB() {}
  
  ObjectB.prototype.method = function() {
  
     // How to call Object A's doWork() method
  }
  </code></pre>
  
  <p><strong>Current attempt:</strong></p>
  
  <pre><code>// Call doWork
  ObjectA.doWork();
  </code></pre>
  
  <p>Error: "Type Error: doWork() function is not defined.</p>
  
  <p><strong>Question:</strong></p>
  
  <p>What is the correct way to call the method of another object WITHIN the method.  What about scoping?</p>
  
  <p>Does ObjectA have to instantiated to call it's methods?</p>
  
  <p>What about the <code>apply()</code> or <code>call()</code> method? I am confused how they apply in this situation.</p>
  
  <p><strong>Final remarks</strong></p>
  
  <p>I want to thank everyone's input in advance. I have only recently made the dive into javascript's OOP. This seemingly simple question is something that I have been struggling all day and I came on here as a final resort.</p>