abhisekdutta

Let's jump into JavaScript

What is JavaScript?

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

Read

Should you start learning programming with JavaScript?

Because of it's popularity & versatility it can be a good choice for beginners in some situations, but it may not be the ideal starting point for everyone.

Read

What is hoisting?

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

Read

What is closure? How to create private variables using JavaScript?

A closure gives you access to an outer function's scope from an inner function. JavaScript does not have a native way to create private variables. However, we can achieve that in different ways.

Read

What is this pointer?

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

Read

What is call, apply & bind?

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.

Read

What is function currying?

Function currying is a functional programming technique that involves breaking down a function that takes multiple arguments into a series of functions that take one argument each.

Read

Can we create our custom Array.map function?

We can define a new method named myMap on the Array.prototype object. This allows us to call myMap on any array instance. Click to read more.

Read

Differences between Shallow copy & Deep copy.

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

Read

Differences between let, const & var. Explain with an example.

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

Read

What is Temporal Dead Zone(TDZ)?

The Temporal Dead Zone (TDZ) is a behavior in JavaScript that occurs with variables declared using let and const. The TDZ starts at the beginning of the block where the variable is declared and ends when the variable is initialized with a value.

Read

What is de-structuring? Can we de-structure array elements?

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

Read

What is var args or variable arguments?

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

Read

What is Array.map? How many arguments can be present in Array.map's callback?

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

Read

What is bubble & capture?

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

Read

What is event.stopPropagation()?

The event.stopPropagation() is a method used to break the chain/propagation of an event beyond the current target. This means it stops the event from bubbling up to parent elements or from capturing down to child elements.

Read

What is Promise? What are the 3 stages of a Promise? Explain Promise.resolve(), Promise.reject(), Promise.race(), Promise.all(), Promise.allSettled(), Promise.any().

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

Read

What is Context in JavaScript?

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

Read

What is Event Loop?

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

Read