DEV Community

NDONGO TONUX SAMB
NDONGO TONUX SAMB

Posted on • Edited on

Kotlin : Check if a year is a leap year?

code :
Alt kotlin

output
Alt return

Top comments (1)

Collapse
 
madza profile image
Madza • Edited

const isLeapYear=y=>!(y&3||y&15&&!(y%25))