Search Topic

Result for Topic: JavaScript

Closures

Function with there lexical scope form a bundle that’s called lexical scope. In JavaScript, a closure is a function that reference variable from its outer...
Continue reading

Recursion in JavaScript.

Recursion is a concept that is not only prevalent in JavaScript but in many other programing languages as well. In simple terms, recursion is a...
Continue reading

The arguments object

The arguments object is a special object in JavaScript that is automatically available within the scope of a function. It contains a list of all...
Continue reading

What is an IIFE in JavaScript?

IIFE: Immediately Invoked Function Expression An IIFE, or Immediately Invoked function Expression, is a common JavaScript design pattern used to create a self-contained and private...
Continue reading

Arrow functions

Arrow functions are a concise way to write functions in javaScript. They were introduced in ECMAScript 6 (ES6) and provide a shorter syntax compared to...
Continue reading

Function Parameters

In JavaScript, parameters of functions default to undefined. However, in some situations it might be useful to set a different default value. This is exactly...
Continue reading

Functions in JS

In JavaScript, functions are fundamental building blocks that allow developers to encapsulate a set of statements performing a task or calculating a value. A function...
Continue reading

Expressions and operators

In JavaScript, an operator is a symbol used to perform operations on operands (numbers, values or variables). for example, Here + is an operator that...
Continue reading