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
Testing is the most important stage in the process of delivery of any software product, as it not only validates the quality of the product but also provides an opportunity to the developer to improve it further. Unit testing and integration testing are both software testing techniques, but they are quite different from each other in their scope and they focus on different parts of the software. Read this article to learn more about unit testing and integration testing and how they are different from each other. What is Unit Testing? Unit testing is a type of testing technique in ... Read More
In Golang, we can use io and os packages to append a string in an existing file. file contains data that can be manipulated in many ways like editing and writing the data. In this article the first method will demonstrate the application of os.Open file of OS package. In the second method, we are going to demonstrate the application of io package. Method 1: Using OS Package In this method, we are going to use os.OpenFile function of OS package in Golang. The permissions for the file are specified by the 0644 parameters. The file will be created ... Read More
In golang, we can use the path package and string package to get the extension of a particular file. Here, in his article, we will obtain the file extension using two methods. In the first method, we will use path package function path.Ext. In the second method, we will use strings package function strings.LastIndex. Method 1: Using Path Package In this method, we will use path.Ext from path package to get the file extension. This built-in function will take the file as an input whose extension is to be printed. Syntax path.Ext The Go path/filepath package makes it easier ... Read More
Top-Down Parsing and Bottom-Up Parsing are used for parsing a tree to reach the starting node of the tree. Both the parsing techniques are different from each other. The most basic difference between the two is that top-down parsing starts from top of the parse tree, while bottom-up parsing starts from the lowest level of the parse tree. Read this article to learn more about top-down parsing and bottom-up parsing and how these two parsing techniques are different from each other. What is Top-Down Parsing? Top-Down Parsing technique is a parsing technique which starts from the top level of the ... Read More