title: Using service call getting data from sharepoint list data and displaying in html table, everything is working but one javascript is failing
body: <p>I am not a developer but occassionaly I have to edit and/or develop sites. I have libraries of scripts that I just edit some code and everything works fine. But right now I am having a issue: 
  In my sharepoint list I have begin and end date. Using sharepoint desinger I was able to calculate month difference between those two dates. Till this point it is working fine. I also need to display a status like - if month > some month do this. Below is my code, I know it is the javascript but I couldn't figure out what. Any sort of help or information will be highly appreciated.</p>
  
  <pre><code>function getMyListDataCallback(xData){  
    -------------  
  }
  var month = (year2-year1)*12+(month2-month1)-1;  
  var status = (function forwardback(fb){  
    if (fb &gt; 45) {console.log("move forward");}  
    else if (fb &lt;25 &amp;&amp; fb &gt; 0) {console.log("stay where you at");}  
    else if (fb &lt;45 &amp;&amp; fb &gt; 30) {console.log("move backward");}  
  })  
   forwardback(month);  
   AddRowToTable(title,report,beginmonth,endmonth,month,status);
  </code></pre>
  
  <p>Every other data is displaying correctly in html table but the status column. It is displaying all codes in function instead of "move forward" and so on. </p>