Shubham Vora has Published 957 Articles

How to convert a string into the lower case using JavaScript?

Shubham Vora

Shubham Vora

Updated on 08-Aug-2022 09:08:41

1K+ Views

This tutorial will teach us to convert the string into the lower case. Programmers can ask themselves why they need to convert the string in the lower case? Let’s understand the answer using the single example. Suppose you are developing the application and need to take input from the user ... Read More

How to compare two numbers in JavaScript?

Shubham Vora

Shubham Vora

Updated on 08-Aug-2022 09:02:40

18K+ Views

In this tutorial, we will learn to compare two numbers in JavaScript. If you are a competitive coder or application developer, in these cases, you need to make a comparison between two numbers and need to perform the particular operation basis on the comparison result of the numbers. Still, many ... Read More

How to check whether a value is a safe integer or not in JavaScript?

Shubham Vora

Shubham Vora

Updated on 08-Aug-2022 08:59:04

624 Views

In this tutorial, we will learn to check whether a value is a safe integer or not in JavaScript. The simple definition of the safe integer in JavaScript is all numbers we can represent under the IEEE-754 double-precision number. It is the set of all numbers which lie between the ... Read More

How to check if a variable is boolean in JavaScript?

Shubham Vora

Shubham Vora

Updated on 08-Aug-2022 08:47:37

29K+ Views

In this tutorial, we will learn to check if the variable is a Boolean in JavaScript. In JavaScript, if we match the two different variables with the same value and different data types using the equality operator, it returns a true value. It means if we compare a twovariable with ... Read More

How to check if a variable is NaN in JavaScript?

Shubham Vora

Shubham Vora

Updated on 08-Aug-2022 08:45:55

9K+ Views

In this tutorial, we will learn to check if the variable is NaN in JavaScript. The full form of the NaN is ‘not a number’. The NaN is the reserved keyword in the JavaScript which we can assign to the variable. If users are using the below method to check ... Read More

How to check if a variable is an integer in JavaScript?

Shubham Vora

Shubham Vora

Updated on 08-Aug-2022 08:44:08

6K+ Views

In this tutorial, we will learn to check if a variable is an integer in JavaScript. Before we solve the problem, we must have a problem. We can ask ourselves, “why do we need to check if the variable is an integer?”. Let’s understand the answer using a single example. ... Read More

How to check if a JavaScript function is defined?

Shubham Vora

Shubham Vora

Updated on 08-Aug-2022 08:40:53

15K+ Views

In this tutorial, we will learn to check whether the JavaScript function is defined or not. If a programmer calls the JavaScript function without defining it, they will see the reference error with the message like “function is not defined.” To overcome the problem, the programmer can check whether the ... Read More

How to check for null, undefined, or blank variables in JavaScript?

Shubham Vora

Shubham Vora

Updated on 08-Aug-2022 08:38:34

17K+ Views

In this tutorial, we will learn to check for null, undefined, or blank variables in JavaScript. There is no particular built-in library function to check whether a variable is undefined or null. Still, we can use some operators such as typeof operator and equality operator to check the variable. Before ... Read More

How to change the value of an attribute in javascript?

Shubham Vora

Shubham Vora

Updated on 08-Aug-2022 08:36:09

23K+ Views

In this tutorial, we will learn to change the value of an attribute in JavaScript. To build web applications, the most programmer uses three languages. HTML, CSS, and JavaScript. The HTML is used to create the base for the web page, CSS for styling, and JavaScript adds the dynamic behaviours ... Read More

How to change the font size of a text using JavaScript?

Shubham Vora

Shubham Vora

Updated on 08-Aug-2022 08:32:48

7K+ Views

In this tutorial, programmers will learn to change the font size of the text using JavaScript. Many application allows users to change the font size according to users’ requirement. We need to change the default font size using JavaScript to achieve that. Before we move ahead with the tutorial, let’s ... Read More

Advertisements