Imran Alam has Published 54 Articles

Difference between Local Storage, Session Storage, and Cookies in JavaScript

Imran Alam

Imran Alam

Updated on 01-Nov-2023 02:01:44

36K+ Views

JavaScript provides three mechanisms for storing data on the client − cookies, session storage, and local storage. Each one has advantages and disadvantages.Local storage is the most recent mechanism. It allows for larger amounts of data to be stored, but the data is not deleted when the browser is closed. ... Read More

How to convert array of strings to array of numbers in JavaScript?

Imran Alam

Imran Alam

Updated on 15-Sep-2023 02:14:31

26K+ Views

In JavaScript, there are different ways to convert an array of strings to an array of numbers. The first way is to use the built-in parseInt() method, and the second way is to use a type conversion function, and the third one is to use the unary + operator.Using the ... Read More

Design a Digital Clock in Neumorphism Style using JavaScript

Imran Alam

Imran Alam

Updated on 08-Dec-2022 13:19:12

265 Views

In this tutorial, we will be discussing how to design a digital clock in neumorphism style using JavaScript. Neumorphism is a new design trend that has been gaining popularity in recent years. It is characterized by soft, rounded shapes and subtle shadows. The HTML We will start by creating a ... Read More

Difference between location.host and location.hostname in JavaScript

Imran Alam

Imran Alam

Updated on 10-Oct-2022 11:57:01

3K+ Views

JavaScript's Location object provides access to the current URL's components. One can think of this object as a read-only window into the current location. There are two properties of the Location object that are often confused: host and hostname. Location.host The host property returns the hostname, port number, and protocol ... Read More

What are Architecture Flux Components in JavaScript?

Imran Alam

Imran Alam

Updated on 14-Sep-2022 08:19:27

282 Views

If you've been keeping up with the JavaScript world in the last few years, you've probably heard of the concept of a "flux" architecture. In a nutshell, flux is a pattern for managing data flow in applications. It was originally designed for use with React, but it can be used ... Read More

How to unflatten an object with the paths for keys in JavaScript?

Imran Alam

Imran Alam

Updated on 14-Sep-2022 08:09:44

295 Views

In JavaScript, an object can be "flattened" by creating a shallow copy of it. This is useful for creating a snapshot of an object, but can cause problems if the object is later modified. If you need to unflatten an object, you can use the paths for keys to restore ... Read More

How to Flatten JavaScript objects into a single-depth Object?

Imran Alam

Imran Alam

Updated on 14-Sep-2022 08:03:30

2K+ Views

In JavaScript, an object can be created by using curly braces {}. This is called an object literal. An object literal can contain properties and methods. What is Flattening? Flattening is the process of reducing an object to a single−depth object. In other words, all the properties and methods of ... Read More

How to create Frame by Frame Animation using CSS and JavaScript?

Imran Alam

Imran Alam

Updated on 14-Sep-2022 07:53:14

580 Views

Frame by frame animation is a technique used in animation to produce motion by displaying a series of static images which are sequentially displayed. The appearance of motion is achieved by displaying the images in rapid succession. The followings are needed before we go to create the frame by frame ... Read More

How to create Expanding Cards using HTML, CSS, and JavaScript

Imran Alam

Imran Alam

Updated on 14-Sep-2022 07:51:05

2K+ Views

In this tutorial, we will learn how to create Expanding Cards using HTML, CSS and JavaScript. We will also learn how to use some additional CSS properties to make our expanding cards more attractive. What are Expanding Cards? Expanding cards are a type of card that can be expanded to ... Read More

How to invoke a function with its arguments transformed in JavaScript?

Imran Alam

Imran Alam

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

125 Views

In JavaScript, we can create functions that take other functions as arguments and invoke them with transformed arguments. This is a powerful technique that can be used to create higher−order functions, which can take a function and return a new function with different behavior. What are Transforming Function Arguments To ... Read More

Advertisements