Javascript Articles

Page 71 of 534

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

Kalyan Mishra
Kalyan Mishra
Updated on 14-Apr-2023 553 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

What is the best way to learn Vanilla JavaScript?

Kalyan Mishra
Kalyan Mishra
Updated on 14-Apr-2023 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 to Create Image Lightbox Gallery using HTML CSS and JavaScript?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 13-Apr-2023 4K+ 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

JavaScript Program to check if the matrix is lower Triangular

Prabhdeep Singh
Prabhdeep Singh
Updated on 13-Apr-2023 179 Views

A matrix can be defined as a 2D array that stores elements in it and mathematically it stores the numbers in it. A Lower triangular matrix is a squared matrix that has the same number of rows and columns and all the elements that are present above the main diagonal passing from the first cell (present at the top-left) towards the last cell (present at the bottom-right) are zero. We will implement a proper code with explanation and discussion over time and space complexity. Example Input 1: mat = [ [ 1, 0, 0, 0], [ 2, ...

Read More

JavaScript Program to Check if it is possible to make array increasing or decreasing by rotating the array

Prabhdeep Singh
Prabhdeep Singh
Updated on 13-Apr-2023 234 Views

Rotation of the array means to assume the array as a circular array and rotate the elements of the array to either their left or right direction by one index at each rotation and the element at one end may take the value present at another end. An Increasing array means that each element will be greater than or equal to its previous element and decreasing array means each element will be less than or equal to the previous element. In this problem, we are given an array and we can rotate the array in either the left or the ...

Read More

JavaScript Program to Check if all rows of a matrix are circular rotations of each other

Prabhdeep Singh
Prabhdeep Singh
Updated on 13-Apr-2023 285 Views

Matrix is a kind of 2-D array in which there is an array of fixed arrays that defines the rows and for each index of this array there are fixed length arrays present and the length of these arrays defines the number of columns present in the matrix. We can store any kind of data type in these cells provided by the matrix. We will be provided with a matrix and each row contains some integers and we have to check if each row is the rotation of one another or not. Rotation of each other means by some number ...

Read More

JavaScript Program to Check if all array elements can be converted to pronic numbers by rotating digits

Prabhdeep Singh
Prabhdeep Singh
Updated on 13-Apr-2023 166 Views

Pronic numbers are also known as rectangular numbers, the pronic numbers are numbers that are multiples of two consecutive numbers. We will be given an array of integers and we can rotate the digits in any direction for a certain number of times to get all combinations. For any combination produced by rotating the digit if each array element can be converted into the pronic number then we will print true otherwise false. Pronic Numbers First, let us discuss pronic numbers: pronic numbers are the numbers that are the product of two consecutive numbers. Mathematically saying, if we have integer ...

Read More

JavaScript Program for Rotate Doubly linked list by N nodes

Prabhdeep Singh
Prabhdeep Singh
Updated on 13-Apr-2023 316 Views

A doubly linked list is a linear data structure where each node stores the address of the next and previous node. We have given a doubly linked list and we have to rotate the doubly linked list by N nodes and print it. Here N is the positive number and less than or equal to the count of the nodes present in the linked list. We are not given the specific side to rotate the doubly linked list. So we will rotate the doubly linked list in both ways. Rotating Doubly Linked List to Counter Clockwise We have to rotate ...

Read More

JavaScript Program to Check if a string can be obtained by rotating another string d places

Prabhdeep Singh
Prabhdeep Singh
Updated on 13-Apr-2023 236 Views

Rotating a string means moving the characters of the string to their left or right side by one index and one end may contain the value stored at the other end. We will be given two strings and we have to rotate the second string either in the left or the right direction by given number (d) times and check if both strings are equal or not. We will write proper code with comments, explanations, and detailed discussions on the time and space complexity of the program. Examples If we have the given string ‘abcdef’ and the other string is ...

Read More

How to create an Asynchronous function in JavaScript?

Tarun Singh
Tarun Singh
Updated on 13-Apr-2023 2K+ Views

A JavaScript asynchronous function is a function that runs independently of the main flow of the program. This allows the program continues executing other code while the async function is running. Async is used to declare an async function, which runs asynchronously, and await is used to pause the execution of the function until a specific asynchronous task is achieved. Method to create an Asynchronous function Using async keyword The simplest way to create an asynchronous function is to use the async keyword before the function declaration. See the below syntax − Syntax async function fetchData() { ...

Read More
Showing 701–710 of 5,338 articles
« Prev 1 69 70 71 72 73 534 Next »
Advertisements