Mayank Agarwal has Published 403 Answers

ReactJS: How to Create a Pie Chart using Recharts?

Mayank Agarwal

Mayank Agarwal

Updated on 25-Apr-2022 11:34:47

In this article, are going to explore the Rechart JS Library and implement it in a React application to watch how they are used. Rechart Libraries are specifically used for creating different types of charts over the React Application. Charts that can be build using this library are Line Charts, ... Read More

JavaScript: How to allow users to change the font-size of a webpage?

Mayank Agarwal

Mayank Agarwal

Updated on 25-Apr-2022 11:27:11

In this article, we are going to explore creating a function that will allow the user to change the font size of the complete webpage. We can generally see this type of feature on some of the government websites in the top right corner. This is basically to facilitate people ... Read More

Creating a Dynamic Report Card using HTML, CSS, and JavaScript

Mayank Agarwal

Mayank Agarwal

Updated on 25-Apr-2022 11:19:44

In this article, we are going to build a dynamic report using the inputs entered by the user. The user will enter the marks (in this case) and we will be populating these marks to calculate the final percentage of the student.We have also implemented the fail/pass status that will ... Read More

How to create a "Coming Soon" page using JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 22-Apr-2022 14:11:17

In this article, we will be creating a Coming Soon Page that will display a timer for the event that will occur on a specific date and time. The timer will go in the opposite direction and at the time of the actual event, it will basically show the event ... Read More

How to convert a string of any base to an integer in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 22-Apr-2022 14:05:55

An integer can be represented in various formats as described in the computed languages i.e. Binary, Decimal, Hexadecimal, etc. A Binary number consists of two digits only i.e. 0 & 1, whereas a decimal consists of digits from 0 to 9.We can convert a string to an integer by using ... Read More

JavaScript: Converting a CSV string file to a 2D array of objects

Mayank Agarwal

Mayank Agarwal

Updated on 22-Apr-2022 13:59:44

A CSV is a comma-separated value that is stored in a file with the .csv extension. This allows the user to store data in a tabular or spreadsheet format.In this article, we will be exploring how to convert the data of a CSV string to 2D array objects where the ... Read More

JavaScript: Computing the average of an array after mapping each element to a value

Mayank Agarwal

Mayank Agarwal

Updated on 22-Apr-2022 13:52:15

In this article, we are going to fetch all the values from an array and after mapping each element to a numerical value we will calculate its sum thus to compute its average.Given below is an array consisting of values. We will compute the average by summing up the values ... Read More

How to compile a Typescript file?

Mayank Agarwal

Mayank Agarwal

Updated on 22-Apr-2022 13:44:46

In this article are going to explore TypeScript and how to execute the same. TypeScript is an open-source programming language developed and maintained by Microsoft.Typescript is a bit syntactically different from the native JavaScript but also adds additional features to it. Typescript is the superset of JavaScript with a strong ... Read More

JavaScript: How to check whether an array includes a particular value or not?

Mayank Agarwal

Mayank Agarwal

Updated on 22-Apr-2022 13:31:28

In this article, we will be discussing the construction of an array. Once the array is created we will be looking out for a value by checking whether it exists in the array or not.But before checking for any particular value, let’s see how the arrays are created in JavaScript.Syntaxlet ... Read More

JavaScript: How to check if a number is NaN or finite?

Mayank Agarwal

Mayank Agarwal

Updated on 22-Apr-2022 13:24:59

Often we need to check whether a finite number or undefined returns the same to the user. In this article also we will be checking if a number is actually a finite number or Not a Number, i.e., NaN.Below is the method to check whether a number is finite or ... Read More

Previous 1 ... 3 4 5 6 7 8 9 ... 41 Next
Advertisements