Challenge 1: Froge Counter
Write a function that takes an array of numbers and returns the count of froges (even numbers).
📌 Hint: Use the modulus operator % to check if a number is even.
Embark on a fun journey with froges and improve your coding skills!
Write a function that takes an array of numbers and returns the count of froges (even numbers).
📌 Hint: Use the modulus operator % to check if a number is even.
Create a function to determine if a given year is a leap year. Remember, leap years are divisible by 4, but not every year divisible by 100 is a leap year unless it is also divisible by 400.
📌 Hint: Think about logical operators to combine multiple conditions.