An arrow function is a compact alternative to the traditional function. While it has its limitations, it is a neat way of writing simple functions in one line.
You can learn more about how to write concise, maintainable, and readable JavaScript code by visiting https://bit.ly/clean-js