Why wouldn't this work? I'm not sure why it says there's a syntax error, it says missing a parenthesis for .append() when the ending parenthesis is clearly there (line 32).
I was told the backslash \ is used for line breaks in .append()
for(var i = 0; i < works.length; ++i) {
$('#work').append('\
<div class='col-sm'>\
<img class='img-responsive' src='" + works[i] + "'>\
</div>\
'); //THIS IS THE END PARENTHESIS FOR .APPEND()
};
I expect the images in an array to be displayed in my webpage. The array is called 'works'.