Javascript Arrow Function
In this code snippet, we’ll learn how to use arrow functions in Javascript. Arrow functions are nothing more than “syntactic sugar” to make writing a function a bit shorter. Both examples below achieve the same thing but the second one is just a bit more compact that’s all.