Interesting javascript tutorial on Map() method over the materials of Map - Part 2 of Functional Programming in JavaScript Start Node to run node index.js Comment out/Uncomment pieces of code to see how things are work. And start the node again by node index.js .