abhisekdutta

JavaScript Tour: Unlock Core Concepts and Hidden Gems

JavaScript is a high-level and widely used programming language. It is used in web browsers and server side with technologies like Nodejs & Deno.

Its popularity and versatility make it good for some beginners, but not ideal for everyone.

Primitive types hold fixed-size values stored directly; reference types store addresses pointing to dynamic objects.

Hoisting is the default behavior of moving all the declarations at the top of the scope before code execution.

A closure allows inner functions to access outer scopes, enabling private variables in JavaScript through workarounds.

In JavaScript, the this keyword is a reference to the context in which a function is executed.

The call, apply, and bind are the methods in JavaScript that are used to control the execution context (the value of this object) of a function.

Function currying breaks a multi-argument function into a series of single-argument functions in programming.

A new method myMap on Array.prototype enables calling it on any array instance in JavaScript.

Shallow Copy duplicates only the outer shell. Where as Deep Copy creates a fully independent replica.

In JavaScript, let, const, and var are used to declare variables, but they have different characteristics and scopes.

The Temporal Dead Zone is when let/const variables can't be accessed before they're initialized in JavaScript.

Destructuring in JavaScript is a syntax feature that allows you to extract values from arrays or properties from objects.

The variable arguments (often referred to as var args) allow functions to accept a variable number of arguments.

With Array.prototype.map() we can prepare a new array from another array elements.

Bubbling and capturing are two phases of event processing that determine the order in which elements receive an event.

The event.stopPropagation() method stops an event from bubbling up or capturing down beyond the current target.

Promise is a way of handling asynchronous operations. The 3 stages of a Promise are Pending, Fulfilled & Rejected.

In JavaScript, Context refers to the value of the this keyword within a function.

Object-oriented programming in JavaScript groups data and methods within objects to model real-world entities and behavior.

In TypeScript, use `get` to define a getter method and `set` for a setter method inside a class.

The event loop is a concept in Node.js that allows it to handle asynchronous operations efficiently.

  1. Install AbhisekDutta.Com

    The application supports Install Page as App... or Add to Dock