Skip to content

Latest commit

 

History

History
4 lines (4 loc) · 251 Bytes

File metadata and controls

4 lines (4 loc) · 251 Bytes

Write a function findLeapYear() that will take the array [2023,2024,2025,2028,2030] as the input parameter and will check if each year is a leap year. If a year is a leap year insert that year in a new array, return the new array and print the result.