JavaScript Arrow functions

Arrow functions were introduced in ES6. Arrow functions are a new way to write shorter function syntax.

Code :