Primary data types in java scripts are numbers, string, boolean, null, undefined. So working with js most of the time we need to convert our data from one type to other type. In js type conversion is bit scary but let's try to make it simple. when we...
Definition of the closure : When the function is executed out of it's lexical scope(means where it was physically declared in the block of code) then this function will get reference to it's lexical variable environment as a persistent storage is cal...
What is Higher Order Function (HOF) ? Before going to understand higher order functions, let's see why we need HOF and what kind of problem it's solves. let's take simple example, consider one use case where you need to double every element of an ar...