I’d like to understand how the quotes work on the right hand side of the new content variables. With just one line I’ll be fine, I added the rest for context.
indent preformatted text by 4 spaces
var newContent = '';
for (var i = 0; i < responseObject.events.length; i++) { // Loop through object
newContent += '<div class="event">';
newContent += '<img src="' + responseObject.events[i].map + '" ';
newContent += 'alt="' + responseObject.events[i].location + '" />';
newContent += '<p><b>' + responseObject.events[i].location + '</b><br>';
newContent += responseObject.events[i].date + '</p>';
newContent += '</div>';
}`indent preformatted text by 4 spaces`
Thanks.