Tag: Closure

Callback

callback

Callback is a executable code that is passed as an argument to another function or code and execute after some time or certain condition. So thats why we can also say call after function to callback function. Execution…

Read More »

Power of javascript closure

Closure

It is a advance concept of javascript. This is really interesting concept in javascript. So basically it is a function inside function which can access outer function properties. According to MDN “A closure is the combination of a…

Read More »

ES6 arrow functions

es6 arrow function

Arrow function taken from CoffeeScript (a transcompiled language). Arrow function, also called “fat arrow” functions. This is represented by => (Flat Arrow). It is anonymous and can change the way this bind into function. When we are using…

Read More »

Javascript function arguments handling

arguments

In javascript we don’t have any method to check our parameters and arguments. Earlier tutorial, We have learned that functions can have parameters; like – functionName(parameter1, parameter2, parameter3) { code to be executed } but suppose that we…

Read More »

Javascript function

functions

A function is a block of statements, which is used to perform a specific task.In javascript functions are defined with the function keyword. There are 3 ways to create a function. 1. by declaration. 2. by function expression. 3. by constructor. (good for…

Read More »