Multi-line string throws “`SyntaxError`: Invalid or unexpected token” when using single quotes

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)';
});

254 thoughts on “Multi-line string throws “`SyntaxError`: Invalid or unexpected token” when using single quotes”

  1. [url=https://buycialismed.com/]cialis 5mg canada[/url] [url=https://ebcialis.com/]cheap online cialis[/url] [url=https://cheapcialisforsale.com/]generic cialis canada online[/url] [url=https://ivermectiner.com/]ivermectin coronavirus[/url]

    Reply
  2. [url=https://chpills.com/]accutane in india price[/url] [url=https://viagraefc.com/]viagra 100 cost[/url] [url=https://viagraif.com/]compare viagra prices uk[/url]

    Reply
  3. [url=https://pharmacysx.com/]rate canadian pharmacies[/url] [url=https://sildenafilatab.com/]sildenafil generic india[/url] [url=https://orderviagratabs.com/]sildenafil canada over the counter[/url] [url=https://viagrafp.com/]viagra in usa online[/url] [url=https://viagrapns.com/]viagra pills pharmacy[/url] [url=https://cheapviagrapharm.com/]viagra buy cheap[/url] [url=https://buyviagramed.com/]genuine viagra online usa[/url] [url=https://viagragenpill.com/]buy viagra 2013 usa[/url] [url=https://tadalafileff.com/]tadalafil tablets 20 mg uk[/url] [url=https://buyepills.com/]augmentin 875 125 mg tablet[/url]

    Reply
  4. [url=https://crmeds.com/]prozac price in uk[/url] [url=https://buyrxtablets.com/]clomid purchase canada[/url] [url=https://phdtabs.com/]cheap finasteride[/url] [url=https://viagraxbuy.com/]sildenafil 10mg tablets[/url] [url=https://cialisextr.com/]purchase cialis in mexico[/url] [url=https://xrpills.com/]order accutane over the counter[/url] [url=https://viagracpill.com/]sildenafil 100mg price[/url] [url=https://ivermectinop.com/]price of stromectol[/url] [url=https://cheapestsildenafil.com/]generic sildenafil 100mg tablet[/url] [url=https://viagrawithnoprescription.com/]cost for viagra 100mg[/url]

    Reply

Leave a Comment