Modern JavaScript
About Lesson

In this JavaScript lesson we are going to learn about JavaScript Arrow Function, Arrow functions are also called fat arrow functions, they are one line functions and are much like Lambda functions in programming languages like Java  and Python. it is a feature on JavaScript ES6.



Now first let’s create our regular function. it is a simple function that takes name as argument and we want to print that name in the output.




We have another type of function that is called anonymous function.




Now let’s create an example of arrow function in JavaScript.




You can also make it simpler.



Now let’s create another arrow function that finds the factorial of a number.


Thank you for visiting my website! If you enjoyed the free courses, please consider supporting my works on Patreon.
Exercise Files
No Attachment Found
No Attachment Found