AppDividend
Latest Web Development Tutorials
Browsing Tag

JavaScript

What is Closure in JavaScript?

Hey Webbies, In today’s AppDividend Tutorial, I have briefly described What is Closure in Javascript? Closure A Closure is the aggregate of functions clumped together with the references to its surrounding environment. It gives you an outer function's scope from an internal function. Scopes are contexts of variables. Every object has a link to scope chain, local first then parents and then finally Global Scope. The Closure allows a function to carry its scope from another context or we can say another lexical scope. A…

Pure Functions In Javascript

Hello, Developers.  In today’s AppDividend Tutorial, I have briefly described Pure Functions In Javascript. Pure functions in Javascript are kind of Functions where the return value is determined by its parameter passed at call time. Javascript is not a purely functional language; it treats functions as objects (first-class functions). If you provide some input parameter value to the function and it always returns the same result, then It's Pure Functions in Javascript. Pure Functions Pure Functional Programming concept is…