Mayank Agarwal has Published 380 Articles

What is a typical use case for JavaScript anonymous functions?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 13:48:59

395 Views

In this article, we are going to explore the Anonymous functions in JavaScript and also learn about their use cases. An anonymous function is a special type of function that does not have any name associated with it.In JavaScript, we normally use the function () keyword before defining any function ... Read More

What are the Pros and Cons of JavaScript Frameworks?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 13:43:36

308 Views

JavaScript has become the most widely used language in the field of web development in a relatively short span of time. For the last 25 years, the JavaScript frameworks have been driving web developmentIn this article, we are going to elaborate upon the uses of JavaScript frameworks along with their ... Read More

What are the Important Array Methods in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 13:35:58

123 Views

In this article, we are going to explore different methods provided by Array and their importance in JavaScript. We will learn how to use them and what are their actual use cases with the help of examples.Before moving on to methods, below is the syntax for creating an array in ... Read More

What are JavaScript Factory Functions?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 13:14:57

12K+ Views

A factory function can be defined as a function that creates an object and returns it. It is similar to constructor functions/class functions.The factory function is a very useful tool in JavaScript since it returns the object of any class directly. We can also populate some fixed static values in ... Read More

What are JavaScript Classes and Proxies?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 13:09:10

119 Views

In this article, we are going to explore Classes and Proxies and the difference between the two.Classes in JavaScript are similar to functions. The only difference is it uses the class keyword instead of the function. Another important difference between the functions and the classes is that the functions can ... Read More

How to Delete a Linked List in JavaScript?

Mayank Agarwal

Mayank Agarwal

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

180 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

JavaScript: How to Find the Middle Element of a Linked List?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 12:09:37

1K+ Views

In this article, we are going to explore Linked List and how to find the middle element of a linked list in JavaScript.If there are an even number of elements in the linked list, there will be two middle nodes. We will be only printing the latter element out of both ... Read More

How to use the "in" operator in JavaScript?

Mayank Agarwal

Mayank Agarwal

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

134 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

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

Advertisements