These are a few examples of how to start using Javascript array methods like map, reduce, filter, and so on.
To execute example you could use the node
command followed by the javascript filename. For example:
node map.js
You can use this command to format all the files using prettier
npm run prettier
You can try these examples on repl.it or you can use the fork button: