//Arrow function in ES6 simplify the JS function without (function), return and brackets // ES5 var x = function(x, y) { return x * y; } // ES6 const x = (x, y) => x * y;
let NewParameters = (a, b) => { console.log(a+b); // 30 } NewParameters(10, 20);