Here's the code I've been working on:
const products = productArray.map(product =>
`
<tr>
<td>${product.id}</td>
<td>${product.type}</td>
<td>${product.price}</td>
<td><button onclick="${() => console.log('hello world')}">Examine</button></td>
</tr>
`
);
return tableBody.innerHTML = products.join('');
I'm stumped by this unexpected token error that keeps pointing to the HTML in my code. It seems like it should be a simple fix, but I can't seem to locate the issue. https://i.sstatic.net/Th7ka.png https://i.sstatic.net/YKI71.png