JavaScript Arrow functions

Arrow functions allow you to shorten the definition of regular functions. Arrow functions are formed...

Passing parameters by value and by reference

Passing parameters by value Strings, numbers, and booleans are passed to the function by value. In o...

Hoisting

Hoisting represents the process of accessing variables before they are defined. This concept may sou...

JavaScript Redefining Functions

Functions have the ability to override behavior. Overriding occurs by assigning an anonymous functio...

JavaScript Recursive functions

Among the functions, recursive functions can be distinguished separately. Their essence is that the ...

JavaScript Pattern Module

The “Module” pattern is based on closures and consists of two components: an outer funct...

JavaScript Closures and IIFE Functions

Closures A closure is a construct where a function created in one scope remembers its lexical enviro...

JavaScript Variable scope

All variables and constants in JavaScript have a defined scope within which they can act. Global var...

JavaScript Function Result

A function can return a result. To do this, use the return statement, after which the return value i...

Function parameters

A function in JavaScript can take parameters. Parameters represent the way data is passed to the fun...