function iqTest(numbers) {
const split = numbers.split(" ");
split.forEach((l, index) => {
if (l % 2 === 0) {
return index + 1;
}
})
}
This is from a CodeWars question. I reckon it looks like the return is missed in the anon function.. but why is that so?