Shubham Vora has Published 962 Articles

How to load a JavaScript function using the variable name?

Shubham Vora

Shubham Vora

Updated on 15-Sep-2022 12:26:54

1K+ Views

In this tutorial, we will learn to load a JavaScript function using the name of a variable. Functions are the block of statements that takes an input and displays the result to the user after an execution. We can use these blocks of codes repeatedly by only declaring the function, ... Read More

How to get the smallest integer greater than or equal to a number in JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Sep-2022 12:24:52

2K+ Views

In this tutorial, we will learn how to get the smallest integer greater than or equal to a number in JavaScript. To get the smallest integer greater than or equal to a number, use the JavaScript Math.ceil() method. This method returns the smallest integer greater than or equal to a ... Read More

How to get the largest integer less than or equal to a number in JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Sep-2022 12:23:02

541 Views

In this tutorial, we will learn how to get the largest integer that can be less than or equal to a number in JavaScript. To get the largest integer less than or equal to a number, we use the Math.floor() method in JavaScript. It is used to round off a ... Read More

How to get the id of a form containing a dropdown list with JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Sep-2022 12:20:37

4K+ Views

In this tutorial, we will learn how to get the id of a form containing a dropdown list using JavaScript. The id property of an HTML element gives a unique id. The id property value must be unique inside the HTML content. The style sheet property points to a specific ... Read More

How to perform Case Insensitive matching with JavaScript RegExp?

Shubham Vora

Shubham Vora

Updated on 15-Sep-2022 12:18:08

3K+ Views

In this tutorial, we will learn how to perform Case Insensitive matching with JavaScript RegExp. Regular expressions can be declared in two ways − Using regular expressions literal, which start and end with slashes, and the pattern is placed in between. Calling the RegExp object constructor, which takes the ... Read More

How to include JavaScript in HTML Documents?

Shubham Vora

Shubham Vora

Updated on 15-Sep-2022 12:15:18

819 Views

In this tutorial, we will learn how to include JavaScript in HTML Documents. To include JavaScript in HTML Documents, use the tag. JavaScript can be implemented using JavaScript statements that are placed within the ... . You can place the tags, containing your JavaScript, anywhere within your web ... Read More

How to improve the performance of JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Sep-2022 12:13:02

249 Views

In today's world, almost every website uses JavaScript. Web applications are becoming more complex and more user-interactive, and this has caused performance issues. It results in a poor user experience, which is not desirable for any web application. Different factors cause poor performance, long loading times, and long response times. ... Read More

How to handle tabs, line breaks and whitespace in a text in JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Sep-2022 12:08:54

1K+ Views

In this tutorial, we will learn how to handle tabs, line breaks, and whitespace in a text in JavaScript. To handle tabs, line breaks, and whitespace in text in JavaScript, we can use the whiteSpace property. This property has seven attributes − normal nowrap pre pre-line pre-wrap initial inherit ... Read More

How to play a multimedia file using JavaScript?

Shubham Vora

Shubham Vora

Updated on 15-Sep-2022 12:02:02

1K+ Views

In this tutorial, we will learn how to play a multimedia file using JavaScript. The multimedia file is the audio and video files. The multimedia files can be of different formats. wav and mp3 are two examples of audio file formats, whereas mp4 and mkv are examples of video file ... Read More

How to pass JavaScript Variables with AJAX calls?

Shubham Vora

Shubham Vora

Updated on 15-Sep-2022 11:53:13

8K+ Views

In this tutorial, we will learn how to pass JavaScript Variables with AJAX calls. AJAX stands for Asynchronous JavaScript and XML. As the name suggests, it performs asynchronous operations on your web page. AJAX communicates with the server by HTTP requests and gets the required data as an HTTP response. ... Read More

Advertisements