print years in descending order javascript

by Ramya 2012-07-07 10:46:37

print years in descending order javascript

print years in descending order javascript
function disp(){
var getDate = new Date();
var curyea = getDate.getFullYear();
for(i=curyea;i>1987;i--){
document.write (i+"
");
}
}
disp();
960
like
0
dislike
0
mail
flag

You must LOGIN to add comments