JavaScript Closures
Closures are function which ‘remember’ the environment in which they were created. A closure is a combination of a function and the lexical environment withi...
Closures are function which ‘remember’ the environment in which they were created. A closure is a combination of a function and the lexical environment withi...
ECMAScript 2015 or commonly called as ES6 specification of JavaScript introduced let and const
Arrow functions are a more concise syntax for writing function expressions. They were introduced in ECMAScript 2015 (ES6). They are also called as lambda fun...
Props Props are read only. Whether a component is defined as a function or a class, it must never modify its own props. All react component must act like pur...
Store
The simplest way to define a component is to write a JavaScript function. The function accepts a single “props” object and returns a React element. Such comp...
A pure function is a function which:
JavaScript code runs single threaded. Javascript has a concurrency model based on an event loop. The event loop is in the heart of Node.js / Javascript - it...
The same-origin policy restricts how a document or script loaded from one origin can interact with a resource from another origin.
undeclared variables don’t even exist undefined variables exist, but don’t have anything assigned to them null variables exist and have null assigned ...