You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
console.log('--------------------');
|
|
for (var year = 2014; year <= 2050; year++)
|
|
{
|
|
var d = new Date(year, 0, 1);
|
|
if ( d.getDay() === 0 )
|
|
console.log("1st January is being a Sunday "+year);
|
|
}
|
|
console.log('--------------------');
|