Found 6710 Articles for Javascript

JavaScript Program for Maximum equilibrium sum in an array

Prabhdeep Singh
Updated on 14-Apr-2023 16:58:46

1K+ Views

The equilibrium sum of the given array is the sum at a particular point or index of the array after which the subarray has the total sum equal to the sum of the subarray starting from the 0th index to the current index (including the current index). We will see the examples and the code implementations in JavaScrript with the different approaches. Introduction to Problem We are given a single array in which we have to find a point from which the total sum of the elements that are present on the left side (including the current index element) is ... Read More

JavaScript Program for Maximum difference between groups of size two

Prabhdeep Singh
Updated on 14-Apr-2023 16:58:02

129 Views

In this program, we are given an array of integers of even length as we know here we have to make groups of two. We have from that groups using elements of an array, we have to choose two groups among them in order to find the maximum difference between that two groups and we have to return that maximum difference which is going to see in the article below. Introduction to Problem In the given problem we have to find the Maximum difference between groups of size two. It means we have given an array of even length and ... Read More

JavaScript Program for Finding Intersection Point of Two Linked Lists

Prabhdeep Singh
Updated on 27-Dec-2024 19:17:04

256 Views

In this tutorial, we will discuss two approaches to finding the intersection point of two linked lists in JavaScript. The first approach involves using the loops, and the second approach involves using the difference of nodes technique which works in the linear time. We will be given two linked lists that are not sorted. Note that there is another version of this problem in which we are given a sorted pair of linked lists and have to find the intersection. We have to find the elements after which all the elements in both linked lists are the same. We will ... Read More

As a developer, how much do you use JavaScript?

Kalyan Mishra
Updated on 14-Apr-2023 16:50:55

176 Views

JavaScript is an object oriented, interpreted scripting language. It’s basically a client-side scripting language which is used to develop dynamic and interactive websites. As you know html used to add elements on the web page whereas CSS is used to make its beautification and JavaScript used to add functionalities like interactivity, animation. JavaScript is also used in the development of mobile application, server-side implementation, game development. We can also use JavaScript with other front-end frameworks like ReactJS, AngularJS, Vue.js. Using these frameworks and libraries developers can easily create dynamic web application and complex designs. In the Full-stack development JavaScript used ... Read More

How to Test JavaScript Code Automatically?

Kalyan Mishra
Updated on 14-Apr-2023 16:27:52

580 Views

Testing JavaScript code automatically can help us to ensure that our code works as intended and catches any bugs or errors it contains. In this article, you will learn about how we can test JavaScript code automatically. Several types of tests are there which can be performed on JavaScript. Unit Tests In this testing we test all the function unit; modules or components which JavaScript program contain. The goal of unit testing is to verify that the smallest possible pieces of code work as expected. In JavaScript, unit testing can be performed using frameworks such as Jest or Mocha. Integration ... Read More

How to remove fake JavaScript pop-up messages and warnings?

Kalyan Mishra
Updated on 14-Apr-2023 16:26:54

424 Views

Fake JavaScript pop-up messages and warnings are typically used for malicious purposes, such as tricking users into downloading malware or providing sensitive information. These fake popups and messages often appear to be legitimate alerts from trusted sources, such as a user's operating system, web browser, or security software, in order to deceive the user into taking a particular action. Clicking popup can forward you to the malicious website example can be − There are several types of fake pop-ups that you may encounter while browsing the internet. Here are some of the most common types − Some Type of Fake ... Read More

Why JavaScript is Used in Blockchain?

Kalyan Mishra
Updated on 14-Jul-2023 16:59:58

322 Views

In this article, you will learn about the use of JavaScript in blockchain technology. We will get to know the reason for using JavaScript in the blockchain Furthermore we will also know about twins' language. JavaScript is a dynamically typed language which perform type checking of language at runtime. JavaScript may not be perfectly accurate but still it is widely used in the blockchain development due to its versatility, popularity, and ease of use. One reason why JavaScript is used in blockchain and makes it a twin language is its ability to run on both the client-side and server-side, which ... Read More

What is the best way to learn Vanilla JavaScript?

Kalyan Mishra
Updated on 14-Apr-2023 16:22:53

2K+ Views

Learning Vanilla JavaScript can be a great way to gain a solid foundation in the language. Vanilla JavaScript is the pure form of JavaScript without the use of any frameworks or libraries. In this article, we will discuss the best way to learn Vanilla JavaScript. But before it, let’s discuss the difference between Vanilla JavaScript and JavaScript. What is difference between Vanilla JavaScript and JavaScript? Generally, there is no difference between them, but there are some differences based on the following parameters. Vanilla JavaScript is a core of the JavaScript language. Which refers to ES5/6/7 and so on. Whereas ... Read More

How do I evaluate blockchain implemented in JavaScript?

Kalyan Mishra
Updated on 14-Jul-2023 17:04:13

109 Views

Blockchain is a chain of blocks that contains information. In year 2009 this technology later adapted by Satoshi Nakamoto to create digital crypto-currency bitcoin. This is completely open to anyone who want to develop or analyse. This technology has a feature which make it very complex to make changes once some data has been recorded in the block of chain. Here are some terms which is used in the blockchain program to evaluate. Block − The block in the block chain contains information like data, Hash value and previous block hash value. Data − This data is completely ... Read More

How to Create Image Lightbox Gallery using HTML CSS and JavaScript?

Aayush Mohan Sinha
Updated on 13-Apr-2023 15:39:48

3K+ Views

In the contemporary epoch of computational technology, the impact of visual media cannot be overemphasized in captivating and retaining the attention of your viewers. A lightbox gallery that showcases images on a web page is an influential mechanism that advances user interaction by furnishing a user-friendly and uncomplicated interface. Why not experiment with this tool and discern for yourself how it can elevate the performance of your website? With the assistance of HTML, CSS, and JavaScript, one can fabricate a bespoke image lightbox gallery that can be effortlessly integrated into a website. In this exposition, we will adopt an incremental ... Read More

Advertisements