When following an online tutorial, it works but when I’m doing it myself, mine does not read the HTML code within the single quote below; the error is:
app.js:15 Uncaught
SyntaxError
: Invalid or unexpected token.
obj.forEach(({ title, image, id, price }) => {
results += '<div class="product">(a bunch of html code)';
});