"true"
и true
. var date = new Date();
var year = date.getFullYear();
var listGroup = $('.list-group');
for(var i = 0; i < 10; i++) {
var currentYear = year - i;
var a = $('<a href="' + currentYear + '" class="list-group-item">' + currentYear + '</a>');
listGroup.append(a);
}