Imran Alam has Published 54 Articles

How to call promise inside another promise in JavaScript?

Imran Alam

Imran Alam

Updated on 14-Sep-2022 07:32:06

When working with JavaScript, you may find yourself needing to call a promise inside another promise. While this may seem like a daunting task, it is actually quite simple once you understand the basics of promises. In this article, we will discuss how to call a promise inside another promise ... Read More

How to uncurry a function up to depth n in JavaScript?

Imran Alam

Imran Alam

Updated on 04-Aug-2022 11:50:37

In JavaScript, a function is considered "curried" if it takes one or more arguments and returns a new function that expects the remaining arguments. Currying is a powerful technique that can be used to create new functions from existing ones, or to "uncurry" a function up to depth n. Why ... Read More

How to clone a given regular expression in JavaScript?

Imran Alam

Imran Alam

Updated on 04-Aug-2022 11:49:04

JavaScript's regular expression support is widely considered to be among the best in the world, but there's one area where it's lacking: there's no built-in way to clone a regular expression. This can be a problem when you need to create a new regular expression that is similar to an ... Read More

How to design a video slide animation effect using HTML CSS JavaScript?

Imran Alam

Imran Alam

Updated on 04-Aug-2022 11:46:31

In this tutorial, we will be discussing how to create a video slide animation effect using HTML, CSS, and JavaScript. This can be used to create a simple yet effective way to grab attention and engage viewers. Applying the Animation Effect To apply the animation effect, we will be using ... Read More

What are the attributes that work differently between React and HTML?

Imran Alam

Imran Alam

Updated on 04-Aug-2022 11:45:25

React and HTML have different ways of handling attributes. In React, some attributes are treated as JavaScript, while in HTML they are treated as strings. This can lead to confusion when working with React and HTML together. Why React Treats Some Attributes as JavaScript? React treats some attributes as JavaScript ... Read More

How to Design a Calculator with Neumorphism Effect/Soft UI in JavaScript?

Imran Alam

Imran Alam

Updated on 04-Aug-2022 11:42:38

In this tutorial, we will be discussing how to design a calculator using JavaScript with a neumorphic effect, also known as a soft UI. Neumorphism is a design trend that has been growing in popularity in recent years and is characterized by its soft, rounded edges and light/dark shading. Designing ... Read More

How to get an object containing parameters of current URL in JavaScript?

Imran Alam

Imran Alam

Updated on 04-Aug-2022 11:40:00

JavaScript is a versatile scripting language that can be used in a number of ways. One such way is to use it to get information about the current URL. This can be useful in a number of situations, such as when you want to create a bookmark or when you ... Read More

How to create a function that invokes each provided function using JavaScript?

Imran Alam

Imran Alam

Updated on 04-Aug-2022 11:38:27

In JavaScript, functions are first-class objects, which means they can be passed as arguments to other functions. This is a powerful feature that can be used to create some interesting patterns. One such pattern is the "invoke- each" pattern, where a function is created that invokes each provided function with ... Read More

How to render a list without rendering an engine in JavaScript?

Imran Alam

Imran Alam

Updated on 04-Aug-2022 11:35:19

In this tutorial, we'll be discussing how to render a list without rendering an engine in JavaScript. We'll go over the different methods and techniques that can be used to achieve this. Method 1: Using the Array.forEach() Method One way to render a list without rendering an engine in JavaScript ... Read More

How to get index in a sorted array based on iterator function in JavaScript?

Imran Alam

Imran Alam

Updated on 04-Aug-2022 11:30:45

Iterator functions are used to iterate through arrays, lists, and other data structures. In JavaScript, there are several ways to get the index at which a value should be inserted into a sorted array. Using the Array sort() and indexOf() Methods The sort() method can be used to sort an ... Read More

Advertisements