Please refer to codepen below for examples on the JavaScript array methods forEach(), map(), reduce(), filter().
See the Pen
Javascript, forEach(), map(), reduce(), filter() by liamny (@mlima2020)
on CodePen.

Maria is an esteemed and celebrated independent web developer based in New York City. Her design and development work shows tremendous passion and insight, which she brings to all of her clients and projects with love, professionalism, and an esteemed work ethic admired by all who partner with Maria.