My code is this:
message.labels.forEach(/…/) container.data.push(message);
It throws Uncaught SyntaxError: Unexpected identifier
When I add a semicolon after the forEach
function it doesn't throw it anymore. I only change the semicolon there, I checked it with my git.
Why does it do it? Feels like I'm missing some JS fundamentals here.