JavaScript Best Practices
In this short article, we will show you the six points for best practices in JavaScript. JavaScript Best Practices Avoid global variables Triple equal Modularize Declare Objects w/ const Optimize...
In this short article, we will show you the six points for best practices in JavaScript. JavaScript Best Practices Avoid global variables Triple equal Modularize Declare Objects w/ const Optimize...
Today we’ll show you how to replace the entire page including Head tag using JavaScript. There are several ways to replace the page, however in this case we will replace...
In this short article, we’ll show you how to remove hostname and port from URL using JavaScript. There are numerous possible techniques, but we’ll focus on two of them. Different...
Today we will show you how to get a number of random elements from an array in JavaScript. In the previous article, we have explained how to get a random...
Today we will show you how to make the jQuery Multiselect DatePicker always open. In the previous articles, we explained how to implement multiselect date picker and how to fix...
When you are implementing a jQuery multi DatePicker then you may see the flickering issue on date selection. So in this article, you will see how to fix the flickering...
In this article, we will convert seconds to time string such as 10d 11h 44m 10s or 5h 10m 49s using Moment.js. Additionally, we need to use the moment-duration-format plugin...
In this short article, we will show you how to include text in the middle of Date format with Moment.js. Refer to the list of articles that are based on...
Today we will show you how to wait for the end of reisze event and then perform an action using JavaScript. When we resize the browser window, the “resize” event...
In this article, you will learn how to select multiple dates in jQuery DatePicker. There are so many libraries are available to implement the DatePicker but here we will show...
Sometimes we have to sort a date string array in JavaScript. In this article, we will show you how to sort a date string array using JavaScript. Checkout more articles...
In this article, you will learn how to divide an array in half using JavaScript. There are multiple ways to split an array into half but here we will show...
In this short article, we’ll show you how to get the current day, month, and year in JavaScript. Here, we will use the pure vanilla JavaScript code to get the...
Today we’ll show you how to open base64 image in a new tab using JavaScript. In the previous article, we explained how to download a base64 image in JavaScript. Checkout...