I've got a quick query. How can I assign an object's property to the href attribute? I've indicated the line with a comment.
success: function (listOfTags) {
let tagData = '';
$.each(listOfTags, function (i, tag) {
// HERE
tagData += '<a href="http://localhost:5557/questions/tagged/' + tag.id + '"><li class="post-tag">' + tag.name + '</li></a>';
});
$('#recentTags').html(tagData);
}