Mayank Agarwal has Published 373 Articles

How to Delete a Linked List in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 12:18:55

267 Views

In this article, we are going to explore Linked List and how to delete a linked list in JavaScript.A Linked List is a data structure that is used for storing raw data. The Linked List elements are not stored in contiguous memory locations. The elements in a Linked List are ... Read More

How to use the "in" operator in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 11:59:56

180 Views

In this article, we are going to explore the 'in' operator and how to use it in JavaScript. The in operator is an inbuilt operator in JavaScript that is used for checking whether a particular property exists in an object or not. It will return true if the property exists, ... Read More

How to use Static Variables in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 11:55:16

3K+ Views

The keyword "Static" is used for defining a static method or a static property of a class. The benefit of a static method is that we do not need to create an instance or object of the class. It does not have multiple values. It will have a single static ... Read More

How to transform JSON text into a JavaScript object?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 11:29:00

2K+ Views

In this article, we are going to explore a way to convert the JSON text into a JavaScript object. JSON, also known as JavaScript Object Notation, is a lightweight data-interchange format that is used for exchanging data over web browsers. JSON is derived from the JavaScript programming language but can ... Read More

How to use JavaScript to play a video on Mouse Hover and pause on Mouseout?

Mayank Agarwal

Mayank Agarwal

Updated on 27-Apr-2022 09:53:24

6K+ Views

In this article, we will be exploring the event listeners and how to use them for pausing and playing a video. We will be using the mouse over and the mouseout events to control the video.The main element of this article includes playing the video whenever the mouse hovers over ... Read More

How to Ping a Server using JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 27-Apr-2022 09:47:12

8K+ Views

A server ping can be defined as hitting a server and getting a response in return from that server. The idea is to send an echo message that will keep the health check and check whether the server is up and running or not. On sending a PING every server ... Read More

How to use JavaScript to replace a portion of string with another value?

Mayank Agarwal

Mayank Agarwal

Updated on 26-Apr-2022 13:24:35

904 Views

In this article, we are going to explore replacing a portion of a string with another value using JavaScript. We can replace string parts in multiple ways. Below are some common methods −replace() methodsplit() methodjoin() methodLet’s discuss the above methods in detail.The replace() MethodThis is an inbuilt method provided by ... Read More

How to swap variables using Destructuring Assignment in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 26-Apr-2022 13:14:16

269 Views

The Destructuring assignment is a feature that was introduced in the ECMAScript 2015. This feature lets the user extract the contents of the array, and properties of an object into distinct variables without actually writing the repetitive codeThis assignment lets the expression unpack values from arrays, and properties into distinct ... Read More

How to set the cursor to wait in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 26-Apr-2022 12:53:57

2K+ Views

In this article, we are going to look at some cursor settings and their behaviors. Currently, there are different kind of cursors as provided by any system that includes a pointer, hand, insert, wait, pointer-wait, and many others.With the help of this article, we would be able to configure the ... Read More

How to return all matching strings against a RegEx in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 26-Apr-2022 12:39:51

435 Views

In this article, we will explore the essentials of a regular expression (RegEx) and how to compare other strings with this regex in JavaScript. We will learn how to identify a similar string with that of a regex and then subsequently return them. We can use the string.search() method to ... Read More

Advertisements