How to get File Extension using JavaScript
Today you will learn how to get file extension from given file name using JavaScript. Here we will see two different methods to get the file extension. You may need...
Today you will learn how to get file extension from given file name using JavaScript. Here we will see two different methods to get the file extension. You may need...
In this article, we’ll show you how to swap two array elements in JavaScript. There are multiple ways to swap two array elements using JavaScript but we will look at...
Today we will show you how to capture Enter key press in JavaScript. Here we will detect whether a user has hit the Enter key with JavaScript/jQuery. Checkout more articles...
In this article, we will show you how to use async/await in loops that you can use it with any JavaScript framework. Here we will see three different loops with...
If you are using file input in the form, you may need to clear the input after submitting the form. So today we will show you how to clear an...
Frequently asked JavaScript Interview Questions and Answers for both freshers and experienced developers. List of JavaScript Interview Questions and Answers What is the difference between JavaScript and AngularJS? What is...
Sometimes we may need to disable an anchor tag in HTML. There are so many ways to disable the a tag but in this article we will explain to you...
Today we will show you how to convert a string into a camel case in JavaScript. There are many methods for converting a string to a camelCase, but we’ll look...
In the technical round of the interview, reversing a string is one of the most often asked JavaScript questions. Interviewers may ask you to write different ways to reverse a...
Converting a string to uppercase or lowercase is straightforward using the toUpperCase() or toLowerCase() methods. But here we will see how to check if a String is all UpperCase or...
In this article, we’ll show you how to use a variable in a Regular Expression pattern in JavaScript. Checkout more articles on JavaScript Scroll to a specific element using JavaScript...
We’re going to show you how to add an event listener to an iframe. In this article, we will see two different methods to add an event listener to an...
Today we will show you how to highlight the searched text using pure JavaScript code. We can also highlight the text using jQuery library but here we will use the...
In this article, we will show you how to preview selected image from input type file using jQuery. Sometimes we may need to display the image before it is uploaded....