this code source contains the following examples :
Example shows the importance of immutability (issue due to mutable state)
Arrow function syntax
Examples of First class function (function as data , function as argument , returning function , partial application)
Example of Higher Order Function
Example of javascript tricks (init param at call , init param with spread operator)
Example of importing svg as a react component
To run the examples on nodejs, please run the following commands:
npm install
for executing a file for example :
npx babel-node HigherOrderFunction.js