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

1,600 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]

  5. First off I would like to say fantastic blog!
    I had a quick question in which I’d like to ask if you do
    not mind. I was curious to know how you center yourself and clear
    your head prior to writing. I have had difficulty
    clearing my thoughts in getting my thoughts out. I truly do enjoy writing however it just
    seems like the first 10 to 15 minutes are usually lost just trying
    to figure out how to begin. Any ideas or tips? Thanks!

  6. Pingback: keto dessert
  7. Great blog! Do you have any tips and hints for aspiring writers?
    I’m planning to start my own website soon but I’m a little lost on everything.
    Would you propose starting with a free platform like WordPress or go for a paid option? There are so
    many choices out there that I’m completely overwhelmed ..
    Any ideas? Cheers!