Arrow functions look very different from the function's expression. Instead of the function keyword, it uses an arrow ( => ) made up of an equal sign and a greater-than character.
OpenIf you’re learning JavaScript, you’ve probably encountered arrow functions, which use arrow notation (=>) to concisely define a function. They can be very handy but it is important to know when to use them, and when not to use them.
Open