title: Javascript variable not defined error
body: <p>i have the following code:</p>
  
  <pre><code>// Get combination prices
  var combID = $('#idCombination').val();
  var combinationsFromController;
  var combination = combinationsFromController[combID];
  
  if (typeof combination === 'undefined')
      return;
  
  // Set product (not the combination) base price
  var basePriceWithoutTax = +productPriceTaxExcluded;
  var basePriceWithTax = +productPriceTaxIncluded;
  var priceWithGroupReductionWithoutTax = 0;
  </code></pre>
  
  <p>When i execute it, Chrome always complaints that:</p>
  
  <pre><code>combinationsFromController is not defined.
  </code></pre>
  
  <p>Can anyone help me why is this happening ?</p>
  
  <p>I tried:</p>
  
  <pre><code>var combinationsFromController = new Array();
  var combination = combinationsFromController[combID];
  </code></pre>
  
  <p>with no luck.</p>