function isLeapYear(year) { if (year % 4 == 0) { console.log("leap year") } else { console.log("Not a leap year") } } var myYear = 2020; isLeapYear(myYear) // Output:leap year