Mayank Agarwal has Published 380 Articles

How to enable JavaScript in Chrome, Firefox, and Safari?

Mayank Agarwal

Mayank Agarwal

Updated on 21-Apr-2022 13:30:20

547 Views

JavaScript has become an inevitable part of modern-day websites. Each and every website requires the latest JavaScript support and works flawlessly once allowed. We have a toggle inside every browser to switch on and off the JavaScript on our websites. If JavaScript is not enabled in our browsers, they react abnormally ... Read More

How to Create an Area chart using Recharts in ReactJS?

Mayank Agarwal

Mayank Agarwal

Updated on 21-Apr-2022 13:26:19

1K+ Views

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 built using this library are Line Charts, ... Read More

How to create a chart from JSON data using Fetch API in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 21-Apr-2022 13:04:04

5K+ Views

In this article, we are going to explore on how to create a chart after fetching the JSON data. To fetch JSON data we use fetch() method of Fetch API. We will first fetch the data and once the data is available we will feed it into the system to ... Read More

Create a Scatter Chart using Recharts in ReactJS

Mayank Agarwal

Mayank Agarwal

Updated on 21-Apr-2022 12:26:35

1K+ Views

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 built using this library are Line Charts, ... Read More

How to Create a Profit and Loss Calculator using HTML, CSS, and JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 21-Apr-2022 12:16:56

2K+ Views

In this article, we are going to create a calculator using JavaScript We will be using the basic math formulas to calculate the profit and loss. We will be returning the result in percentage along with the actual values.To calculate the Profit and Loss we need two things that are: ... Read More

Getting the Domain Info for Request in Express.js

Mayank Agarwal

Mayank Agarwal

Updated on 06-Apr-2022 12:47:07

3K+ Views

We need to get the DNS information to track the address from where we receive the requests. This feature also provides an added layer of security, protecting the application from different type of DOS and DDOS attacks.We can use the following functions to get the domain and host information.SyntaxGetting the ... Read More

Express.js – req.subdomains Property

Mayank Agarwal

Mayank Agarwal

Updated on 06-Apr-2022 08:27:37

399 Views

req.subdomains returns an array of all the subdomains in the domain name of the request. The application property subdomain offset is used for determining the beginning of the subdomain segments. The default value of the subdomain offset property is 2.Syntaxreq.subdomainsExampleCreate a file with the name "reqSubdomains.js" and copy the following ... Read More

Express.js – req.signedCookies Property

Mayank Agarwal

Mayank Agarwal

Updated on 06-Apr-2022 08:26:34

229 Views

req.signedCookies contains the signed cookies (ready for use) sent by the request while using the cookie-parser middleware. Signed cookies exist in a different object to show the developer intent, else a malicious attack could be made on the request.cookie values that are relatively easy to spoof.The property defaults are set ... Read More

Express.js – req.originalUrl Property

Mayank Agarwal

Mayank Agarwal

Updated on 06-Apr-2022 08:23:37

675 Views

The req.originalUrl property is similar to the req.url property. This property retains the original URL and lets us rewrite the same to redirect the request further to some other network or as needed. The app.use() method will rewrite the req.url to strip the mount point.Syntaxreq.originalUrlExample 1Create a file with the ... Read More

Express.js – req.ips Property

Mayank Agarwal

Mayank Agarwal

Updated on 06-Apr-2022 08:21:30

249 Views

The req.ips property contains an array of all the IP addresses in the X-Forwarded-For request header value. This property is only populated when the trust proxy setting does not evaluate to False. This header values or IP's can be set either by the proxy or the client.Syntaxreq.ipsExample 1Create a file ... Read More

Previous 1 ... 7 8 9 10 11 ... 38 Next
Advertisements