Shubham Vora has Published 957 Articles

How to handle bind an event using JavaScript?

Shubham Vora

Shubham Vora

Updated on 26-Aug-2022 13:35:20

10K+ Views

In this tutorial, we will learn how to handle bind an event using JavaScript. Events are the actions or occurrences in the system by the browser or users. There are various types of events that represent various activities performed by the browser or users. For example, if a user ... Read More

How to get the number of options in the dropdown list with JavaScript?

Shubham Vora

Shubham Vora

Updated on 26-Aug-2022 13:25:34

10K+ Views

This tutorial will show different ways to get the number of options in the drop-down list with JavaScript. While filling out any form online, users have to add unique information using the input method. However, the options they get in the drop-down list are already determined. Since there can be ... Read More

How to get the square root of 2 in JavaScript?

Shubham Vora

Shubham Vora

Updated on 26-Aug-2022 13:20:46

1K+ Views

In this tutorial, we shall learn to get the square root of 2 in JavaScript. The square root of 2 is an irrational number, and it is called Pythagoras's constant. We can’t denote it in fractions, and it has an infinite number of decimals; hence, we can’t find its exact ... Read More

How to get the smallest of zero or more numbers in JavaScript?

Shubham Vora

Shubham Vora

Updated on 26-Aug-2022 13:18:43

745 Views

In this tutorial, we shall learn to find the smallest among numbers in JavaScript. Let’s discuss the available methods one after the other Using the Math.min() Method Here, the Math.min() is a static function of the placeholder object Math. If no parameters, the result is -Infinity. If the parameters are ... Read More

How to get the day of the week in JavaScript?

Shubham Vora

Shubham Vora

Updated on 26-Aug-2022 13:14:12

2K+ Views

The most common techniques for getting a day of the week and the name of the day in JavaScript will be covered in this tutorial. It is important to remember that if you are working on a small project, starting to install packages for something basic may be difficult. Small ... Read More

How to get the largest of zero or more numbers in JavaScript?

Shubham Vora

Shubham Vora

Updated on 26-Aug-2022 13:07:28

319 Views

In this tutorial, we will look at how to get the largest of zero or more numbers in JavaScript. The maximum of multiple numbers can be found using different techniques. The first technique we will introduce is the Math.max() method. The second technique will be the for-loop method. Following ... Read More

How to get the exponent power of a number in JavaScript?

Shubham Vora

Shubham Vora

Updated on 26-Aug-2022 13:04:14

4K+ Views

In this tutorial, we will learn how to get the exponent power of a number in JavaScript. The power of a number can be termed as how many times a particular number is multiplied by the number itself. For calculating the power of a number, we require two things, Base ... Read More

How to get the day of the month in JavaScript?

Shubham Vora

Shubham Vora

Updated on 26-Aug-2022 13:01:36

6K+ Views

In this tutorial, we will learn how to find out the day of the month using JavaScript. We'll go over the most popular methods which are used for obtaining the name of the month and day in JavaScript. It is important that starting to install packages for something basic may ... Read More

How to compare only date part without comparing time in JavaScript?

Shubham Vora

Shubham Vora

Updated on 23-Aug-2022 09:55:45

7K+ Views

While developing the applications, sometimes it needs to compare the only date. For example, you are developing some apps in which users must adhere to the deadline and pay for the subscription. If the user pays at any time on or before the end date of the subscription, the user ... Read More

How to come out of a switch case in JavaScript?

Shubham Vora

Shubham Vora

Updated on 23-Aug-2022 09:53:14

2K+ Views

In this tutorial, we will learn to come out of a switch case in JavaScript. The switch-case statement is the advanced version of the too many complicated if-else statements. Suppose that in the code, you apply too many conditions to the if-else statement; it will become complicated. Users can see ... Read More

Advertisements