title: I cant for the life of me figure out whats wrong with this script
body: <pre><code>var cb1 = this.getField("Check Box1").isBoxChecked(0); 
  var cb2 = this.getField("Check Box3").isBoxChecked(0); 
  var cb3 = this.getField("Check Box4").isBoxChecked(0); 
  var cb4 = this.getField("Check Box5").isBoxChecked(0); 
  var cb5 = this.getField("Check Box6").isBoxChecked(0); 
  var cb6 = this.getField("Check Box7").isBoxChecked(0); 
  var cb7 = this.getField("Check Box8").isBoxChecked(0); 
  
  if (cb1 &amp;&amp; cb2 &amp;&amp; cb3 &amp;&amp; cb4 &amp;&amp; cb5 &amp;&amp; cb6 &amp;&amp; cb7)
  { event.value = "0"; } 
  
  let totalDays = this.getField("Totaldays").value;
  [
  {checked: cb1, rentalRate: 0}, {checked: cb2, rentalRate: 30}, {checked: 
  cb3, rentalRate: 20}, {checked: cb4, rentalRate: 0}, {checked: cb5, 
  rentalRate: 40}, {checked: cb6, rentalRate: 0}, {checked: cb7, rentalRate: 
  0} 
  ]
  .filter(item =&gt; item.checked) .forEach(item =&gt; { let rentalFee = 
  item.rentalRate * totalDays; event.value += rentalFee; });
  </code></pre>
  
  <p>It keeps stating there is a "syntax error: Missing ; before statement." Does anyone see anything obvious that I am just missing? I feel like I need a fresh set of eyes to look it over. I am working in Adobe Acrobat DC fyi. In the image, I drew an arrow to wear it highlights and mentions the arrow. Thank you in advance!</p>
  
  <p><a href="https://i.stack.imgur.com/voamp.png" rel="nofollow noreferrer">Syntax Error</a></p>