This is my code so far:
/*function isSchrikkeljaar(year) {
year = 2016;
if (//is empty(year)) {
//use current year
}
if (year%4===0 && (year%100!=0 || year%400===0)) {
return true;
console.log(true);
} else {
return false;
console.log(false);
}
}*/
If the year is a leap year it logs true, if not it should log false, if the year is empty it should take the current year. Can anyone help me out, been stuck for a while. The problem is that I don't know how to give it the current year when the year is empty.