Skip to content

Instantly share code, notes, and snippets.

@mrandyclark
Created January 11, 2011 21:30
Show Gist options
  • Save mrandyclark/775189 to your computer and use it in GitHub Desktop.
Save mrandyclark/775189 to your computer and use it in GitHub Desktop.
var startYear = 2000;
var endYear = 2020;
while(startYear <= endYear)
{
if(startYear%4 == 0 && (startYear%100 != 0 && startYear%400 != 0))
{
console.log(startYear);
}
startYear++
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment