title: default parameters in node.js
body: <p>How does one go about setting default parameters in node.js?</p>
  
  <p>For instance, let's say I have a function that would normally look like this:</p>
  
  <pre><code>function(anInt, aString, cb, aBool=true){
     if(bool){...;}else{...;}
     cb();
  }
  </code></pre>
  
  <p>To call it would look something like this:</p>
  
  <pre><code>function(1, 'no', function(){
    ...
  }, false);
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>function(2, 'yes', function(){
    ...
  });
  </code></pre>
  
  <p>However, it doesn't seem that node.js supports default parameters in this manner.  What is the best way to acomplish above?</p>