Javascript And Ajax -

This approach is cleaner, more readable, and is currently the industry standard for vanilla JavaScript AJAX requests.

const suggestionsHtml = suggestions.map(item => `<div class="suggestion">$item.name</div>` ).join(''); Javascript and AJAX