JS assignment 16 (pre course work)
Iyehvah (2)

I seriously dont understand what im doing wrong. So frustrating. Please help :(

function exerciseOne(names){
// Exercise One: In this exercise you will be given and array called names.
// Using the forEach method and a callback as it's only argument, console log
// each of the names.
}
function callNames(name){
console.log(name);
}
names.forEach(callNames);

You are viewing a single comment. View All
mwilki7 (382)

have you tried putting names.forEach(callNames) inside the exerciseOne() function?