title: Console prints out the function, not the value
body: <p>Hello I am a new coder and I'm trying to figure out what is wrong with my logic. I'm making a tip calculator, so I created an object (tipCalculator) and I have two properties (bills) and (percentage), I want to iterate over bills.length and multiply each element by an element in percentage array according to the if statement. When i try to call it and print this to the console, it just prints out the function. Can someone explain why this wouldnt work? thanks :)</p>
  
  <pre><code>var tipCalculator = {
      bills: [124, 48, 268, 180, 42],
      percentage: [.2, .15, .1],
      calcTip: function(){
      for(var i = 0; i &lt; this.bills.length; i++){
          if(this.bills &lt; 50){
              return this.bills * this.percentage[0];
          } else if (this.bills &gt;= 50 &amp;&amp; this.bills &lt;= 200){
              return this.bills * this.percentage[1];
          } else {
              return this.bills * this.percentage[2];
          }
      } 
      }
  };
  
  tipCalculator.calcTip();
  console.log(tipCalculator.calcTip)
  
  //and heres my current results: 
  
  ƒ (){
      for(var i = 0; i &lt; this.bills.length; i++){
          if(this.bills &lt; 50){
          console.log(this.bills * this.percentage[0]);
          } else if (this.bills &gt;= 50 &amp;&amp; this.bills &lt;= 200){
  </code></pre>
  
  <p>//Thanks for the help :)</p>