Tell us what’s happening:
why is this callback function method not working on freecodecamp console?
Your code so far
const arr= [1,2,3,4]
const findElement = arr.find((num)=> {
return num % 2 === 0
})
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.54
Challenge: Basic Algorithm Scripting - Finders Keepers
Link to the challenge: