Articles on Trending Technologies

Technical articles with clear explanations and examples

JavaScript Memory Profiling and Performance Optimization

Mukul Latiyan
Mukul Latiyan
Updated on 15-Mar-2026 842 Views

JavaScript is a popular programming language used for creating dynamic web pages and applications. However, as applications become more complex, memory usage and performance can become critical factors. In this article, we will explore memory profiling and performance optimization techniques in JavaScript to help you build efficient and fast-running applications. Memory Profiling Memory profiling involves analyzing the memory usage of your JavaScript application to identify and resolve memory leaks and excessive memory consumption. Let's look at examples of memory profiling using different tools and techniques. Memory Profiling with Chrome DevTools function createArray(size) { ...

Read More

JavaScript Program to Check if a Matrix is Symmetric

Prabhdeep Singh
Prabhdeep Singh
Updated on 15-Mar-2026 800 Views

A symmetric matrix is a square matrix that equals its transpose, meaning element at position (i, j) equals element at position (j, i). In mathematical terms, A = AT, where A is the matrix and AT is its transpose. In this article, we'll explore JavaScript programs to check if a given matrix is symmetric using different approaches. Original Matrix A 1 ...

Read More

JavaScript Program for Number of unique triplets whose XOR is zero

Aishwarya Mani Tripathi
Aishwarya Mani Tripathi
Updated on 15-Mar-2026 491 Views

JavaScript Program for the Number of unique triplets whose XOR is zero is a common programming problem that requires finding the number of unique triplets in a given array whose XOR is equal to zero. The XOR operation is a bitwise operator that takes two bits and returns 1 if the bits are different, and 0 if they are the same. In this problem, we need to find all possible combinations of three numbers in the array, where the XOR of the triplet is zero. Problem Statement We are required to find the number of unique triplets in ...

Read More

How to share code between Node.js and the browser?

Rushi Javiya
Rushi Javiya
Updated on 15-Mar-2026 1K+ Views

Sharing code between the backend and front end of a full-stack application can be a challenging task. However, it's essential for building maintainable and scalable applications. By sharing code, we can avoid code duplication, reduce development time, and maintain consistency across our applications. In this tutorial, we'll explore different techniques for sharing code between Node.js and the browser and learn how to choose the best approach for our project. Techniques for Sharing Code Between Node.js and the Browser Users can follow the approaches below to share code between Node.js and the browser: CommonJS Modules CommonJS ...

Read More

JavaScript Program to Check If a Singly Linked List is Palindrome

Prabhdeep Singh
Prabhdeep Singh
Updated on 15-Mar-2026 380 Views

A singly linked list is a linear data structure that is stored in a non-contiguous way in the memory and each block is connected by holding the address of the next block also known as a node. A palindrome can be explained as a set of characters, digits, etc, and it reads the same from both the front and backside. We will be given a singly linked list and have to find whether the values stored at the nodes are equal from both the front and backside. Problem Examples Input 1 -> 2 -> 3 -> 3 ...

Read More

JavaScript Program for Pairs such that one is a power multiple of other

Aishwarya Mani Tripathi
Aishwarya Mani Tripathi
Updated on 15-Mar-2026 219 Views

JavaScript Program for pairs such that one is a power multiple of the other is a problem that involves finding pairs of numbers where one number can be expressed as a power of another number. In this tutorial, we will explore how to write a JavaScript program to solve this problem using different approaches and algorithms. A power multiple relationship exists when one number is equal to another number raised to some integer power. For example, 8 is a power multiple of 2 because 2³ = 8. Problem Statement Given an array of integers, we need to ...

Read More

JavaScript Program for Block Swap Algorithm for Array Rotation

Ravi Ranjan
Ravi Ranjan
Updated on 15-Mar-2026 504 Views

To implement block swap algorithm for array rotation, we will be understanding two different approaches. Rotation of the array elements means moving the elements of the given array to either the left or right side by some number of specific positions. Block swap algorithm for array rotation means to rotate the elements of the array by a given number but not using the rotation but the swapping technique. In this article we are having an array and a variable d by which array will be rotated, our task is to write a JavaScript program for block swap algorithm for ...

Read More

JavaScript Program for Pairwise Swapping Elements of a Given Linked List

Aishwarya Mani Tripathi
Aishwarya Mani Tripathi
Updated on 15-Mar-2026 309 Views

In this tutorial, we will learn how to implement a JavaScript program for pairwise swapping elements of a given linked list. This operation swaps adjacent elements in pairs, which can be useful for reorganizing data, rearranging elements, or optimizing algorithms. We will provide a step-by-step approach to implementing the algorithm, explaining the logic and code behind it. By the end of this tutorial, you will understand how to implement pairwise swapping in a linked list using JavaScript. Problem Statement Given a linked list, the task is to swap elements pairwise. Elements at consecutive positions are swapped with ...

Read More

JavaScript Robotics: Building Autonomous Drones with JavaScript

Mukul Latiyan
Mukul Latiyan
Updated on 15-Mar-2026 1K+ Views

In recent years, the field of robotics has seen tremendous growth and innovation. With the advent of JavaScript, a versatile and widely used programming language, developers now have the power to build autonomous robots and drones using familiar tools and frameworks. In this article, we will explore the exciting world of JavaScript robotics by focusing on building autonomous drones. JavaScript Robotics and Drones Traditionally, building robots and drones required knowledge of specialized languages such as C++ or Python. However, JavaScript has emerged as a viable alternative due to its ease of use, wide adoption, and a vibrant ecosystem ...

Read More

JavaScript Program for Ceiling in a sorted array

Prabhdeep Singh
Prabhdeep Singh
Updated on 15-Mar-2026 285 Views

An array is a linear data structure that contains objects, and in a sorted array, elements are arranged in increasing order. Given a sorted array and an integer x, we need to find the ceiling of x. The ceiling is the smallest element in the array that is greater than or equal to x. If no such element exists, we return that the ceiling does not exist. Problem Understanding Let's understand this with examples: Example 1 Array = [1, 3, 5, 7, 9] X = 19 Output: Ceiling does not exist (no element ≥ ...

Read More
Showing 14261–14270 of 61,297 articles
Advertisements