Input = [2000, 2002, 2003, 2004, 2005, 2006,
         2007, 2008, 2009, 2016, 2011, 2012]
console.log(checkYear(Input));
var res=[];
function checkYear(year)
{
    for(var i =0; i<year.length ; i++)
    {
     if(((year[i] % 4 == 0) && (year[i] % 100 != 0)) || (year[i] % 400 == 0))
     {
        res.add(year[i]);
     }
    }
    return res;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: