-
-
Save TheShubhamVsnv/beb658b1e8c0411ec8dda97df2dc1526 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let numbers = [2, 4, 6, 8]; | |
let allEven = numbers.every(num => num % 2 === 0); // Check if all numbers are even | |
let hasOdd = numbers.some(num => num % 2 !== 0); // Check if any number is odd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment