I'm struggling to properly format the following line:
document.write('<td><input value="Add to ShopBakset"'+
' type="button"'+
'onClick="addToBasket(\'' +
+JSON.stringify(products[i]) +
'\')"/></td>');
document.write("</tr>");
It's important that js strings are not split across new lines, so it must remain like this. Can you spot any mistakes in the code?