Found 6685 Articles for Javascript

Why JavaScript is Used in Blockchain?

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

199 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

1K+ 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

44 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

JavaScript Program To Add Two Numbers Represented By Linked Lists- Set 1

Prabhdeep Singh
Updated on 04-May-2023 11:02:09

153 Views

Adding two numbers is an easy task but could be tricky if the numbers are given in the form of the linked list. Each node of the linked list contains the digit of the number it represents in a continuous manner from the first node to the last node. We will be given two linked lists representing two different numbers and we have to add them and return the third number in the form of a linked list. Input 1 -> 2 -> 3 -> null 3 -> 2 -> 4 -> null Output 4 -> 4 -> 7 ... Read More

JavaScript Program to Check horizontal and vertical symmetry in binary matrix

Prabhdeep Singh
Updated on 18-Apr-2023 09:08:38

308 Views

A binary Matrix is a 2-D array that consists of one and zero only as the elements in each cell. Horizontal symmetry of a binary matrix means if the first row is the same as the last row, the second row is the same as the second last row, and so on. Similarly, vertical symmetry means if the first and last column, second and second last column, and so on are the same. In this problem, we are given a matrix and we will find if horizontal and vertical symmetry is present in it or not. Input1 0 1 0 ... Read More

JavaScript Program for Writing A Function To Get Nth Node In A Linked List

Prabhdeep Singh
Updated on 04-May-2023 10:58:19

71 Views

Linked list is a linear data structure and all the nodes are connected to each other by storing the address of the next node. To find the nth node in a linked list means to get the value present at the nth node of the given linked list and that can be done by two methods that are iterative and recursive method. Example Given linked list: 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> null Node to find: 3 Output 3 Explanation: The value present at the third node is 3. Iterative Approach ... Read More

JavaScript Program to Check if strings are rotations of each other or not

Prabhdeep Singh
Updated on 04-May-2023 11:00:13

370 Views

Strings are rotations of each other means two strings that can be rotated to either the right or left direction to obtain the other string. In the right rotation characters of the string shift to their following index and for the zeroth index, it takes the character of the last index assuming the string is in a circle. Left rotation is similar to right rotation but in the opposite direction. We will be given two strings and we have to find whether by rotating the characters of the string we can get another or not. Input string1: “abcdef” string2: ... Read More

JavaScript Program to Check if Matrix is Upper Triangular

Prabhdeep Singh
Updated on 13-Apr-2023 15:31:41

93 Views

An Upper triangular matrix is a squared matrix that has the same number of rows and columns and all the elements that are present below the main diagonal passing from the first cell (present at the top-left) towards the last cell (present at the bottom-right) are zero. Upper triangular means the elements present in the lower triangle will be zero. We will implement a proper code with explanation and discussion over time and space complexity. Example Input1: mat = [ [ 1, 2, 3, 4], [ 0, 5, 6, 7], [ 0, 0, 8, ... Read More

JavaScript Program to check if the matrix is lower Triangular

Prabhdeep Singh
Updated on 13-Apr-2023 15:30:14

67 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

Advertisements