Mayank Agarwal has Published 373 Articles

How can I pass parameters in computed properties in VueJS?

Mayank Agarwal

Mayank Agarwal

Updated on 12-Apr-2023 16:29:24

2K+ Views

The difference between a computed property and a method is that computed properties are cached, these properties only change when their dependency change. A method will be evaluated every time it is being called. The only useful situation is when the user wants the getter and needs to have the ... Read More

Checking if an image is loaded or not on the browser using VueJS?

Mayank Agarwal

Mayank Agarwal

Updated on 12-Apr-2023 16:27:11

2K+ Views

Whenever we insert an image in the front end of any system, it is very important to show the user proper data and images to enhance the user experience. In any project, an image is basically loaded from the remote path URL or from the application. An image may not ... Read More

Adding or removing elements from a list dynamically using VueJS?

Mayank Agarwal

Mayank Agarwal

Updated on 12-Apr-2023 16:23:42

3K+ Views

Vue can be defined as a progressive framework for building the user interfaces. It has multiple directives that can be used as per the user needs. The basic core library is mainly focused on building the view layer only and is also easy to pick up other libraries or integrate ... Read More

How to use the debugger keyword in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 14:31:01

653 Views

Whenever an unexpected occurrence takes place in a JavaScript code, we need to debug it to check the cause. Debugging is a very important aspect of programming that lets you determine why a system or application behaves abnormally. It is a process of testing multiple times with different inputs and ... Read More

How to use setTimeout() function in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 14:22:15

4K+ Views

The setTimeout() function is provided by the window object, which calls the specified JavaScript function after the specified time only. This function will be called just once after waiting for the timeout set by the user.It is similar to an alarm or reminder functionality. In the same way, we set ... Read More

What is a typical use case for JavaScript anonymous functions?

Mayank Agarwal

Mayank Agarwal

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

464 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

438 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

193 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

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

190 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

Advertisements