Mayank Agarwal has Published 380 Articles

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

3K+ Views

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

4K+ Views

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

234 Views

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

405 Views

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

601 Views

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

761 Views

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

1K+ Views

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

167 Views

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

409 Views

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

JavaScript: How to check if a number is even without using the modulo operator?

Mayank Agarwal

Mayank Agarwal

Updated on 22-Apr-2022 13:20:34

710 Views

Often we need to check whether a number is odd or even and return the same to the user. In this article also we will be checking whether a number is even or not but without using the modulo operator. It’s pretty easy to check whether a number is even ... Read More

Previous 1 ... 5 6 7 8 9 ... 38 Next
Advertisements