What is arrow function in Javascript?
< 1 min readAn arrow function is a shorter syntax for defining a function in JavaScript. It was introduced in ECMAScript 6 (also known as ECMAScript 2015) and is now widely supported in modern browsers and environments. Here is an example of a traditional function definition: Here is the same function defined using an arrow function: You can…
