Im a beginner to coding JS. When im trying to create an array function for diplaying object reference. I write it on the VS code. See the image for the details.

The problem is that i want to remove the 'undefined' status that is printed on the cmder. Im using Node and cmder to run the code.

Hope this clear for you to understand my problem. Thanks
foodList(which isundefinedsince forEach will return undefined). Call yourfoodListmethod without theconsole.logconst foodList = items.forEach(.......)will fix it