In JavaScript, an object contains the key-value pair. Sometimes, we may require to sort the object keys. We can’t use the sort() method directly with the object as like array, as we need to sort the key-value pair of the object together rather than sorting only keys. Below, we will learn various methods to sort the object keys in ascending and descending order. Use the sort() method to order keys in JavaScript objects We can use the Object.keys() method to get all keys of the object in the array. After that, we can use the array.sort() method to sort ... Read More
We can’t use the built-in sort() method of JavaScript to sort the table rows based on the particular column. So, we need to create a custom algorithm to sort table rows. In this tutorial, we will learn to sort tables and rows using JavaScript. Here, we will look at different examples to sort table rows in ascending and descending order. Syntax Users can follow the syntax below to sort rows in a table using JavaScript. var switchContinue = true; while (switchContinue) { switchContinue = false; var allRows = table.rows; for ... Read More
The array and object destructuring feature was introduced in the ES6 version of JavaScript. The destructuring of the array and object allows us to store its values in a separate variable. After that, we can use that variable to access the value of the particular property of the object. The main thing we need to focus on while destructuring the array object is the default values. For example, we have added the property3 variable in the destructuring object, but if the object doesn’t contain the property3, destructuring sets the undefined value to the property3 variable. Users can follow ... Read More
We can use the tag in HTML to add a link to the web page. The default cursor style for the elements is the pointer, but removing the href attribute from the tag changes the cursor style. So, in this tutorial, we will learn to keep the cursor style to pointer for tags without the href attribute. Users can follow the example below to check out the default cursor style for the elements Example In the example below, we have used the tag to create three different links. In the output, we ... Read More
In HTML, content editable div allows users to edit the content of the div element. We need to pass the contenteditable attribute with true Boolean value to the div element to make any div element editable. The content editable div contains the caret cursor by default, and sometimes we may require to set the caret cursor position in the content editable div element to edit the content of the div. However, we can set the caret cursor position anywhere by clicking at a particular place in the content editable div. This tutorial will teach us to use different ... Read More
Both Quality Assurance and Quality Control primarily focus on defectfree delivery of an application. Quality Assurance focuses on preventing defects. It ensures that the approaches, techniques, methods and processes designed for the projects are implemented correctly. Quality Control, on the other hand, focuses on identifying the defects. It ensures that the approaches, techniques, methods and processes are designed in the project are followed correctly. Read this article to learn more about quality assurance and quality control and how they are different from each other. What is Quality Assurance? Quality Assurance, also known as QA, focuses on preventing defects. It is ... Read More
The table contains multiple rows, and every row contains multiple columns. Also, every column contains multiple HTML elements or texts. Here, we will add the submit button on every table row, and based on the button click, we will access the row's data. We will use JavaScript and jQuery to access the row data, and after that, users can send it anywhere, wherever they want, using API, etc. Use JavaScript to access row data In this approach, we will access the first clicked element. We will find its parent element based on the clicked element, giving us a particular ... Read More
Unit testing and system testing are two different types of software testing techniques. The focus of unit testing is to ensure that each unit of a software product works as intended. System testing, on the other hand, tests the entire software product as a whole. Read this article to learn more about unit testing and system testing and how these two testing techniques are different from each other. What is Unit Testing? Unit testing is a type of testing in which a single module is tested at a time. Unit testing checks if the individual units of an application function ... Read More
The regular expression is a pattern containing various characters. We can use the regular expression to search whether a string contains a particular pattern. Here, we will learn to create a regular expression to validate the various mathematical formulas. We will use the test() or match() method to check if particular mathematical formula matches with regular expression or not Syntax Users can follow the syntax below to create regular expressions accepting special mathematical formulas. let regex = /^\d+([-+]\d+)*$/g; The above regex accepts only 10 – 13 + 12 + 23, like mathematical formulas. Regular Expression ... Read More
Unit testing and sandwich testing are two different types of software testing techniques. In Unit testing, the individual units of a software product are tested in isolation from the rest of the application. Sandwich testing, on the other hand, focuses on testing the interactions between multiple units of a software product. Read this article to learn more about unit testing and sandwich testing and how these two testing techniques are different from each other. What is Unit Testing? Unit testing is a type of testing in which a single module is tested at a time. Unit testing checks if the ... Read More
 
 Data Structure
 Data Structure Networking
 Networking RDBMS
 RDBMS Operating System
 Operating System Java
 Java MS Excel
 MS Excel iOS
 iOS HTML
 HTML CSS
 CSS Android
 Android Python
 Python C Programming
 C Programming C++
 C++ C#
 C# MongoDB
 MongoDB MySQL
 MySQL Javascript
 Javascript PHP
 PHP 
		