Comma Separated Year List
JavaScript code to make a comma separated list of years.
JavaScript
var lastYearInArray = 2017,
yearList = [];
for (var i = lastYearInArray; i >= 1600; i--) {
yearList.push('"' + i + '"');
}
console.log(yearList.join(','));