79501226

Date: 2025-03-11 15:12:29
Score: 1
Natty:
Report link

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.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vishal Kumar