Basic Algorithm Scripting - Finders Keepers

Tell us what’s happening:
Can someone help me find a resource that explains the "=== 0’ at the end of the arrow function?

I understand it makes the function return a true or false but I can’t seem to find what thats called

  **Your code so far**
function findElement(arr, func) {
let num = arr.find(func);
return num;

//findElement([1, 2, 3, 4], num => num % 2 === 0);

let func = (num) => num % 2;

  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Basic Algorithm Scripting - Finders Keepers

Link to the challenge:

This whole thing is a condition, check for equality. This particular expression will be true if num is divisible by 2 without a remainder

If you want more examples, I suggest to look into methods like:

There are bunch of similar expressions, in the examples of code with this methods.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.