To understand what is arrow function and how to use it.
To be able to convert the arrow function to a traditional function.
Arrow function was introduced in ES6 to make Javascript even more concise. However, I personally don't like my developers using arrow functions as I don't think it makes the code readable.
In essence, whenever you're using a function (which is a lot of Javascript), you could remove having to type the word function, return, or use the curly brackets.&...
Arrow function
Arrow function was introduced in ES6 to make Javascript even more concise. However, I personally don't like my developers using arrow functions as I don't think it makes the code readable.
Please spend no more than 10 minutes reading this reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions.
In essence, whenever you're using a function (which is a lot of Javascript), you could remove having to type the word function, return, or use the curly brackets.&...