https://thepandeysoni.org/

Arrow Functions: Before moving to arrow functions, let’s check once how normal functions defined:

const array = [ 1, 2, 3, 4]; let y = 0; const sum = array.reduce(function (x) { y += x; return y; })

Everyone, who is in the era of JavaScript |Node and other JavaScript based technology, they are very much familiar with callbacks and they know how to implement it. Just have a look on Working with callback APIs using the Node convention: Returns a function that will wrap the given nodeFunction…

Everyone talking about ECMAScript 6 big changes and variable declartion in ECMAScript 6(ES6). In terms of definations, here are the description about const, let and var: