Abhishek has Published 83 Articles

How to Sort Numeric Array using JavaScript?

Abhishek

Abhishek

Updated on 20-Nov-2023 17:36:28

544 Views

In this article, we are going to learn about the methods of sorting a numerical array in JavaScript. Sorting of an array means to arrange the elements of an array in a particular order i.e. they can be in ascending or the increasing order and they can be arranged in ... Read More

How to sort HTML elements by data-attribute?

Abhishek

Abhishek

Updated on 20-Nov-2023 17:31:52

300 Views

In this article, we are going to learn about the ways of sorting the child elements of an element in the HTML document with the help of data attribute. The are many data attribute available in HTML to use. We can sort the elements by using any of those data ... Read More

How to sort element by numerical value of data attribute using JavaScript?

Abhishek

Abhishek

Updated on 20-Nov-2023 17:20:51

337 Views

Generally, we sort arrays, objects and some other data types using some method of JavaScript. But, in this article, we are going to sort the child elements of an element whose values are in unsorted order using the data attribute of those child elements. In this article, we are going ... Read More

How to sort an array on multiple columns using JavaScript?

Abhishek

Abhishek

Updated on 20-Nov-2023 17:01:57

268 Views

A array with multiple columns is an array that contains multiple elements at single index or position OR we can say that it is an array of arrays that contains multiple arrays at each index of it and we have to sort that array according to the elements of those ... Read More

How to sort an array of object by two fields in JavaScript?

Abhishek

Abhishek

Updated on 20-Nov-2023 16:57:50

169 Views

An array of objects is an array that contains all the elements in the form of JavaScript objects. Here, we are said to use an array of objects with two fields that means, have to use objects with two elements as elements of the array. In this article, we are ... Read More

How to sort a set in JavaScript?

Abhishek

Abhishek

Updated on 20-Nov-2023 16:51:32

192 Views

A set is also a data structure that is almost similar to the map data structure. The only difference between them is that map stores the elements in the form of key-value pair, while set does not it only stores a single value in the same order as it was ... Read More

How to sort a map in JavaScript?

Abhishek

Abhishek

Updated on 20-Nov-2023 16:44:53

612 Views

In JavaScript, Map is a type of data structure that stores the values in the form of key value pairs. It can store all types of data types, whether they are primitive or JavaScript objects. It stores the elements in the same order in which they are inserted, hence, when ... Read More

How to solve the issue that arise while using performance.now() method in JavaScript?

Abhishek

Abhishek

Updated on 20-Nov-2023 16:38:32

98 Views

The performance.now() method is used to calculate the performance of the code written by any programmer or the coder. The performance.now() method will return a numerical value that will be the time taken by the written code to execute. The value returned by this method may vary every time we ... Read More

How to set the size of specific flex-item using CSS?

Abhishek

Abhishek

Updated on 20-Nov-2023 16:25:43

92 Views

In CSS, we can create our own flexbox using some flex properties provided by the CSS. The CSS flexbox is used to create the responsive layout for the mobile and other small screen devices to arrange the layout by adjusting their sizes for those screen sizes. To create a flexbox ... Read More

How to set the order of flexible items using CSS?

Abhishek

Abhishek

Updated on 20-Nov-2023 15:29:51

57 Views

Generally, all the HTML elements renders on the web page in the same order in which they are defined in the HTML document. But we can change the order of any element using the order property of CSS. We can use the order property on the elements which are defined ... Read More

Advertisements