Now I got it.
var d = new Date();
var start = d.getFullYear();
categories = Array();
for(i = start; i <= start+4; i++)
categories .push(i);
alert(categories);
solved javascript array using for loop
Now I got it.
var d = new Date();
var start = d.getFullYear();
categories = Array();
for(i = start; i <= start+4; i++)
categories .push(i);
alert(categories);
solved javascript array using for loop