Your syntax is not correct
data.forEach(consoleItem()) // this is wrong syntax
Correct syntax is
data.forEach(consoleItem) // this is correct
In forEach you dont need to call the function. It only require function as an argument.