如何解决此错误:意外令牌

时间:2020-11-11 14:50:17

标签: javascript syntax-error

我在以“ Hi”开头并提示的那一行出现错误吗?

 // create header index map
  var headerIndexes = indexifyHeaders(headers);
  
  allData.forEach(function(row,i) {
    if (!row[headerIndexes["Status"]]) {
      var   htmlBody = 
          "Hi " + row[headerIndexes["Email Address"]] +",

" +
          "Thanks for filling out the Grade Check Request.

" +
            "Your choice:

" +
              

1 个答案:

答案 0 :(得分:0)

var headerIndexes = indexifyHeaders(headers);
allData.forEach(function (row, i) {
  if (!row[headerIndexes["Status"]]) {
    var htmlBody = "Hi " + row[headerIndexes["Email Address"]] + "," + "Thanks for filling out the Grade Check Request." + "Your choice:"
  }
})