Answers for "leap year find in javascript programs with using if else condition and whithout function using"

1

Leap year function javascript

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
Posted by: Guest on December-14-2021

Code answers related to "leap year find in javascript programs with using if else condition and whithout function using"

Code answers related to "Javascript"

Browse Popular Code Answers by Language