find leap year javascript
function isLeap(year) {
if (year % 4 === 0) {
if (year % 100 === 0){
if (year % 400 == 0){
return ("Leap year.");
} else {
return ("Not leap year.");
}
} else {
return ("Leap year.");
}
} else{
return ("Not leap year.");
}
}
Also in JavaScript:
- js go to page
- variavel javascript
- store current date in chrome storage extension
- loop through api response in react
- sars
- slider plugin for angular
- async await arrow function
- get field type file js and loop
- install vue-cli
- javascript prototype explained
- javascript tousand seperator
- generate random character in javascript
- info
- count occurrences of character in string javascript
- sum array without loop javascript
- mm dd yyyy how to get date in this format in javascript
- backbone js event listener
- conditional jsx property
- Displaying JSON data in Chartjs
- how to make and add to an array in javascript
- jquery open page in new tab
- js output html
- js-cookie
- check a checkbox jquery