Can someone please help me locate the syntax error in this code snippet? I've been searching for ages!
An error occurred: Uncaught SyntaxError: missing ) after argument list
promiseArray.push(
new Promise(function (resolve, reject) {
runOWSLS("Invoice", beginning2014Months[i], closing2014Months[i], "no", function (callbackResp) {
invoice2014Header[i] = callbackResp;
resolve();
});
});
);