Arrow Function

// ES5
function greet(name){
console.log("Hello! "+ name);
}
greet("Hemant");
// ES6
var greet = (name) => console.log("Hello! "+ name);
greet("Hemant");
// for single method parameter we can ommit () see below
// OR ( as returned value)
var greet = name => "Hello! "+ name;
console.log(greet("Hemant"));