Imran Alam has Published 54 Articles

Design a Digital Clock in Neumorphism Style using JavaScript

Imran Alam

Imran Alam

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

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

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

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

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

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

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

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

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

How to invoke a function with partials prepended arguments in JavaScript?

Imran Alam

Imran Alam

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

JavaScript functions can be invoked with or without arguments. When invoked with arguments, the function is executed with the arguments passed in as values. When invoked without arguments, the function is executed with no arguments passed in. In some cases, it is desirable to invoke a function with some arguments, ... Read More

How to invoke a function with partials appended to the arguments in JavaScript?

Imran Alam

Imran Alam

Updated on 14-Sep-2022 07:33:47

In JavaScript, a function can be invoked by passing arguments to it. However, sometimes it is necessary to invoke a function with some arguments already filled in. This can be done using a technique called partial function application. What is Partial Function Application? Partial function application is a way to ... Read More

Advertisements