Make sure you have defined all the variables needed
<p>Getting "Make sure you have defined all the variables needed." in this Code Academy JavScript script.</p>

<pre><code>// add a parameter called hourOfDay to the function
var taxiFare = function (milesTraveled, hourOfDay) {
  var baseFare = 2.50;
  var costPerMile = 2.00;
  var nightSurcharge = 0.50; // 8pm to 6am, every night
  var costs = baseFare + (costPerMile * milesTraveled);
  if (hourOfDay &gt; 20 || hourOfDay &lt; 6) 
    costs = costs + nightSurcharge
  end
  return costs
};
</code></pre>
