[Solved] Produce an ordered HTML list using JavaScript


Instead of forEach, use map.

The map() method creates a new array with the results of calling a provided function on every element in this array.

return array.map(logArrayElements);

0

solved Produce an ordered HTML list using JavaScript