Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
</body>
</html>
 
var y=1970;
var m=[0,1,2,3,4,5,6,7,8,9,10,11];
for (var i=0;i<150;i++)
{
  for (var j=0;j<12;j++)
  {
var a= new Date (y+i,m[j],20);
var b= new Date (y+i,m[j],26);
 var days = Math.round((b - a) / ( 1000 * 60 * 60 * 24)) +1 ;
 
    if (days!=7) console.log(i+y);
  }
}
console.log('-FINISH-'+new Date().getTime())
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers