
Arrow Function
What is Arrow Function? Arrow function {( ) =>} is concise way of writing JavaScript functions. The arrow functions in JavaScript allow us to create a shorter and anonymous function. Arrow functions were introduced in the ES6 version. They make our code more structured and readable. Why should you use arrow functions?