Rushi Javiya

Rushi Javiya

137 Articles Published

Articles by Rushi Javiya

137 articles

Java Program to Delete a Node From the Ending of the Circular Linked List

Rushi Javiya
Rushi Javiya
Updated on 02-Jan-2025 302 Views

In this article, we will learn the remove the last node of the circular linked list in Java. We set Null to the next pointer of the second-last node to remove the last node from the regular linked list, but in the circular linked list, we need to set the root node to the next pointer of the second-last node. Steps to delete a node from the ending of the circular linked list We will find the second-last node of the circular linked list. While traversing the linked list, we can check whether the next pointer of the current node ...

Read More

How to Trigger a File Download when Clicking an HTML Button or JavaScript?

Rushi Javiya
Rushi Javiya
Updated on 27-Nov-2024 49K+ Views

To trigger a file download when clicking an HTML button or JavaScript, is a very common and important part of web page where users can directly download the file they want by clicking a button or link. We will be understanding four different approaches to achieve this. In this article, we are having a button in our HTML document and our task is to trigger a file download when clicking an HTML button or JavaScript. Approaches to trigger file download Here is a list of approaches to trigger a file download when clicking an HTML button or JavaScript which we ...

Read More

How to Create an Image Element Dynamically using JavaScript?

Rushi Javiya
Rushi Javiya
Updated on 18-Nov-2024 13K+ Views

To create an image element dynamically using JavaScript, we can use various approach based on our use case. We will be understanding two such approach in this article with examples and stepwise explaination of examples. In this article our task is to create an image element dynamically using JavaScript. Approaches to Create an Image Element Here is a list of approaches to create an image element dynamically using JavaScript which we will be discussing in this article with stepwise explaination and complete example codes. Using createElement() Method Using Image() Constructor ...

Read More

JavaScript knowledge required for GTM (Google Tag Manager)

Rushi Javiya
Rushi Javiya
Updated on 30-Sep-2024 830 Views

The Google Tag Manager is a tag management system that allows you to configure and rapidly deploy tags on your website or mobile app using a simple web-based interface. It has the same capabilities as the Google Tag, a JavaScript library used to send data from your website to Google Analytics. Tag Manager also supports tag version management and organization, community and third-party-developed tag templates, enterprise collaboration tools, and security features. JavaScript for Google Tag Manager Before you start using the Google Tag Manager, the following JavaScript topics are necessary for you to learn − Basic Syntax of ...

Read More

Java program to find 2 elements in the array such that difference between them is largest

Rushi Javiya
Rushi Javiya
Updated on 30-Aug-2024 639 Views

In this problem, we will find two array elements such that the difference between them is maximum using Java. We can make a pair of each element and find the difference between the elements of each pair. After that, we can take a pair whose element has a maximum difference. Another approach is to sort the array and take the largest and smallest elements from the array. Problem statement  We have given an array containing the integer values. We need to find two array elements to maximize the difference between them. Input 1 array[] = { 50, 10, 30, ...

Read More

Java Program to Extract Digits from A Given Integer

Rushi Javiya
Rushi Javiya
Updated on 31-May-2024 20K+ Views

In Java programming, there are scenarios where we need to extract individual digits from an integer for further manipulation or analysis. This tutorial will guide you through the process of extracting digits from a given integer using Java. Syntax while (num > 0) { int digit = num % 10; System.out.println(digit); num = num / 10; } The above is the syntax to extract digits from an integer in Java. We keep extracting the last digit by taking the remainder of the number with 10. We divide the number by 10 until it ...

Read More

How to clear cache memory using JavaScript?

Rushi Javiya
Rushi Javiya
Updated on 31-Oct-2023 36K+ Views

Cache memory, often known as cache, is a different memory system in a computer that stores frequently used data and instructions for a short period. While loading a website, the browser we are using will automatically cache some resources, such as images, scripts, and stylesheets, to be utilized again when the page is reloaded. This can shorten the time it takes for a website to load not only that but also it helps to lower the amount of data that has to be sent over the network. But this cache memory stored by the browser also has some disadvantages. If ...

Read More

Top must-know Features of JavaScript

Rushi Javiya
Rushi Javiya
Updated on 04-Oct-2023 30K+ Views

In this tutorial, we will understand the special features of Javascript. Javascript is a popular programming language. Javascript features are flexible. Many open-source libraries are available. GitHub contains a large volume of Javascript code by developers across the world. Javascript works well in the front end and back end. Javascript has a simple syntax. Without any settings, anyone can execute Javascript programs and make them user-friendly. One individual having basic knowledge of HTML, CSS and coding can work with Javascript. Features of Javascript Scripting Javascript executes the client-side script in the browser. Interpreter The browser interprets JavaScript code. Event Handling ...

Read More

How to Validate Mobile Number Length in ReactJS?

Rushi Javiya
Rushi Javiya
Updated on 08-Sep-2023 2K+ Views

Nowadays, validation of mobile number input is a required feature for any application, and it requires validation of the length of the mobile number. Many apps use the mobile number for authentication purposes, sending OTP to users' mobile numbers for successful authentication. If the user enters the wrong mobile number, the app can face issues with sending OTP. So, before the user submits the mobile number for registration or authenticates the app, our app should validate the length of the mobile number. This tutorial will teach us various approaches to validating a mobile number using ReactJs. Before we start, users ...

Read More

How to Validate an Email in ReactJS?

Rushi Javiya
Rushi Javiya
Updated on 08-Sep-2023 7K+ Views

Email validation is an important feature we need to add to the authentication form. Nowadays, most applications use email and a one-time password for authentication. If the user enters the wrong email, they should not be able to authenticate their selves. Also, we need to validate the email while getting the user's email via the contact form. The user may enter the wrong email format due to some mistake. So, to correct users' mistakes, we can alert them by showing the error that you have entered the wrong email. Below, we will learn two approaches to validate the email address ...

Read More
Showing 1–10 of 137 articles
« Prev 1 2 3 4 5 14 Next »
Advertisements