In this tutorial, you will learn what is function composition in javascript. I tried my best to explain in the video above but some people did not understand exactly what I meant. Let me simplify it for you. In function composition, we have a single parent function. Outside parent function, we create multiple
In this tutorial, you will learn what is function currying in javascript. Functional programming style is very common in any programming language. It makes your code clear, concise and readable. There are different concepts in functional programming and function currying is one of them. Function currying is a process of transforming one single
In this tutorial, you will learn what is the difference between pure function and impure function in javascript. A pure function always return identical result with identical arguments and it should not have any side effects. A good example can be of an add() function. The add() function takes 2 arguments and returns
In this tutorial, you will learn how to format phone number in javascript. When we develop a website where visitors from all around the world can register, we have to make sure that our registration form is user-friendly. Asking for a phone number in a registration form is not something that everybody does, but it
In this tutorial, you will learn how to generate random password in javascript. Generally, we end up using the same password for all of our online accounts and this is the thing that makes our online account more vulnerable to attackers. These days it is extremely important to have a random password for each of