JavaScript30 - Day 7

Day 7: Array Cardio Day 2

Day 7 was again an array cardio day. like in day 3 instead of building an app we practice array function. This time we used find(), Some(), and Every() function. I find every one of them very useful.

Some(): The some() method executes the function once for each element present in the array: If it finds an array element where the function returns a true value, some() returns true (and does not check the remaining values)

Every(): The every() method executes the function once for each element present in the array: If it finds an array element where the function returns a false value, every() returns false (and does not check the remaining values)

Find(): If it finds an array element where the function returns a true value, find() returns the value of that array element

you can check my work on GitHub