title: Uncaught SyntaxError: Unexpected token else, completely stumped
body: <pre><code>if (monthsResult2 === 1) {
      monthsAppend = "month";
  } else if (monthsResult2 &gt; 1)
      monthsAppend = "months";
  } else {
      monthsAppend = " ";           
  }  
  </code></pre>
  
  <p>Can anyone tell me what the issue with the if/else statement is? I am currently getting the error:</p>
  
  <p>Uncaught SyntaxError: Unexpected token else</p>
  
  <p>But after looking at multiple examples I can't for the life of me see what I am doing wrong! Any help would be greatly appreciated! </p>