Like the question says, I am trying to list the months of the year with the corresponding abbreviation of the month name, but I am stuck on how to make the alert print 'Month 1 is Jan' instead of 'Month 0 is Jan'. This is my code within tags in my code, and the result is this. How can I get the result to begin from Month 1 for January? Thanks
var months =["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
var message = "";
for (i in months) {
message += 'Month ' + i + ' is ' + months[i] + '\n';
}
alert(message);