Built-in Array Methods-map(), filter() and reduce()
Introduction
An array in JavaScript is a type of global object used to store data between square brackets, separated by commas. It is a variable which can hold more than one value at a time. Arrays are zero-based, which means that they use numbered i...
qnnakwue.hashnode.dev5 min read
Blake Wight
Senior Fullstack Developer
Just a few things:
arrays need commas between values, not semi-colons.
The reduce function might be more clear with an initial value, and maybe another example. That one can be hard for people.
I did learn how to use map on a string though! That was something new for me. Thanks!