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=]cialis 5mg canada[/url] [url=]cheap online cialis[/url] [url=]generic cialis canada online[/url] [url=]ivermectin coronavirus[/url]

  2. [url=]accutane in india price[/url] [url=]viagra 100 cost[/url] [url=]compare viagra prices uk[/url]

  3. [url=]rate canadian pharmacies[/url] [url=]sildenafil generic india[/url] [url=]sildenafil canada over the counter[/url] [url=]viagra in usa online[/url] [url=]viagra pills pharmacy[/url] [url=]viagra buy cheap[/url] [url=]genuine viagra online usa[/url] [url=]buy viagra 2013 usa[/url] [url=]tadalafil tablets 20 mg uk[/url] [url=]augmentin 875 125 mg tablet[/url]

  4. [url=]prozac price in uk[/url] [url=]clomid purchase canada[/url] [url=]cheap finasteride[/url] [url=]sildenafil 10mg tablets[/url] [url=]purchase cialis in mexico[/url] [url=]order accutane over the counter[/url] [url=]sildenafil 100mg price[/url] [url=]price of stromectol[/url] [url=]generic sildenafil 100mg tablet[/url] [url=]cost for viagra 100mg[/url]


Leave a Comment