title: Passing local variables between methods (Node js, prototype)
body: <p>I have 2 methods</p>
  
  <pre><code>var variable_to_be_passed; // setting this does not seem to work
  
  A.prototype.beforeEach = function(callback) {
    variable_to_be_passed = 5;
    ParentA.prototype.beforeEach.call(this, test, function() {
    callback();
  });
  
  A.prototype.afterEach = function(variable_to_be_passed, callback) {
    console.log(variable_to_be_passed) //prints undefined
    ParentA.prototype.afterEach.call(this, test, function() {
    callback();
  });
  </code></pre>
  
  <p>I want to access variable_to_be_passed in A.prototype.aftereach. Could someone suggest how this should be done?</p>
  
  <p>Thanks</p>