Found 8895 Articles for Front End Technology

Logical Properties in CSS

Mohit Panchasara
Updated on 03-May-2023 16:27:07

147 Views

In CSS, logical properties allow developers to define the style based on the logical structure of the web page rather than the physical layout. It means we can apply the CSS according to the text direction or content flow. Mainly logical properties are used to set the HTML element's margin, padding, and border. It contains different variants of the margin, padding, and border property. Logical properties can be defined according to the block and inline dimensions. Block dimension − The block dimension represents the perpendicular direction of the content flow. For example, in English text direction is left ... Read More

Loading Text Animation Effect using CSS

Mohit Panchasara
Updated on 03-May-2023 15:36:22

772 Views

Nowadays, the animation is the most powerful feature in the applications to attract more users, and it increases users' interest in exploring the application. In web applications, we can create animations using HTML and CSS. However, we can create animations using JavaScript, but it makes the website slower. In this tutorial, we will learn to load text animation using HTML and CSS. It is important to show loading text with animation while fetching data from API or loading web pages to make it more attractive. Example 1 In the example below, we created the ‘loader’ div and ‘loader-inner’ div element ... Read More

JavaScript String Prototype Property

Mohit Panchasara
Updated on 03-May-2023 15:34:20

777 Views

In JavaScript, every object has its own properties, and each object contains the prototype property. The string is also an object in JavaScript. So, it also contains the prototype property. The prototype property is nested in the object, meaning every prototype property contains another prototype property. The string object’s prototype property contains the default methods and properties. However, developers can customize the prototype property and add methods and properties to the string prototype. In this tutorial, we will learn to use the methods of string prototype property and customize them. Syntax Users can follow the syntax below to add any ... Read More

Is there any selector for elements containing certain text in CSS?

Mohit Panchasara
Updated on 03-May-2023 15:30:37

5K+ Views

In CSS, selectors are used to select an HTML element to style. There are various CSS selectors available in CSS, such as class selector, id selector, name selector, etc. Sometimes, developers need to select an HTML element based on the custom attribute value instead of selecting it based on the class name or id. We can use the attribute-value CSS selector to select the HTML element based on the particular attribute value. We can also add the custom attribute instead of only pre-defined attributes in HTML. Syntax Users can follow the syntax below to use the attribute-value CSS selector to ... Read More

JavaScript Program for Pairwise Swapping Elements of a Given Linked List

Aishwarya Mani Tripathi
Updated on 02-May-2023 17:43:24

167 Views

In this tutorial, we are going to learn about a JavaScript Program for Pairwise Swapping Elements of a Given Linked List. One common operation on linked lists is swapping adjacent elements in pairs. This operation can be useful in various scenarios, such as reorganizing data, rearranging elements in a specific order, or optimizing certain algorithms. Also, we will focus on solving the problem of pairwise swapping elements in a given linked list using JavaScript. We will provide a step-by-step approach to implementing the algorithm, explaining the logic and code behind it. By the end of this tutorial, you will have ... Read More

JavaScript Program for Pairs such that one is a power multiple of other

Aishwarya Mani Tripathi
Updated on 02-May-2023 17:41:58

84 Views

JavaScript Program for pairs such that one is a power multiple of the other is a problem that involves finding pairs of numbers such that one number is a power multiple of the other. In this tutorial, we will be discussing how to write a JavaScript program to solve this problem. We will be exploring various approaches and algorithms to find these pairs efficiently. Additionally, we will also be discussing the time and space complexity of these algorithms to provide a comprehensive understanding of the topic. So, let's dive in and learn how to write a JavaScript program to find ... Read More

JavaScript Program for Number of unique triplets whose XOR is zero

Aishwarya Mani Tripathi
Updated on 02-May-2023 17:39:10

145 Views

JavaScript Program for the Number of unique triplets whose XOR is zero is a common programming problem that requires finding the number of unique triplets in a given array whose XOR is equal to zero. The XOR operation is a bitwise operator that takes two bits and returns 1 if the bits are different, and 0 if they are the same. In this problem, we need to find all possible combinations of three numbers in the array, where the XOR of the triplet is zero. This problem can be solved using various approaches, including brute force, hashing, and sorting. In ... Read More

JavaScript Program for Number of local extrema in an array

Aishwarya Mani Tripathi
Updated on 02-May-2023 17:38:50

84 Views

JavaScript Program for the Number of local extrema in an array is a common problem in the field of computer science and data analysis. In this problem, we are required to find the number of local extrema in an array using JavaScript. Local extrema are the peaks and valleys in a sequence of numbers. They are the points where the values change from increasing to decreasing or from decreasing to increasing. Finding the number of local extrema in an array can be a challenging task, but it is an essential step in many data analysis applications. In this tutorial, we ... Read More

JavaScript Program for Mirror of matrix across diagonal

Aishwarya Mani Tripathi
Updated on 02-May-2023 17:15:58

239 Views

JavaScript Program for the Number of pairs with maximum sum is a common coding problem that involves finding the number of pairs in an array that have the maximum sum. This problem can be solved using various approaches, including brute-force, sorting, and hash tables. In this tutorial, we will discuss a simple and efficient approach using hash tables to solve this problem. We will explain the logic behind the solution step-by-step and provide a detailed implementation in JavaScript. Additionally, we will analyze the time and space complexity of our solution and discuss possible optimizations. This tutorial assumes basic knowledge of ... Read More

JavaScript program for Minimum Product Subset of an Array

Aishwarya Mani Tripathi
Updated on 02-May-2023 17:09:03

172 Views

JavaScript Program for Minimum product subset of an array is a common problem that arises in the field of computer science and programming. The problem statement requires us to find the minimum product that can be obtained from any subset of the given array. A minimum product subset of an array is a subset of array elements that yields the smallest possible product. Several algorithms are available for identifying this subset, including dynamic programming, greedy algorithms, and branch and bound. The selection of the algorithm is determined by the particular constraints and specifications of the problem at hand. In this ... Read More

Advertisements