Nitish Kumar

Recent Posts by Nitish Kumar

Get the Current Timestamp in JavaScript

As a developer, every now and then, you will need to get the current timestamp in JavaScript. It allows us to represent both the current date and time as a single number. There are many ways to get the current timestamp or epoch time or number of seconds since January 1, 1970 00:00:00 UTC. In […]

Get the Full URL or Query String of Current Page in JavaScript

Every now and then you will want to get the full URL of current page in a project you are working on. Fortunately, JavaScript allows us to get different parts of a URL or the complete URL as a unit. In this post, you will learn about different properties of the Location object returned by […]

Insert Element(s) at Specific Position in an Array in JavaScript

In one of my previous posts, I mentioned different ways to remove or delete a specific element from an array in JavaScript. When manipulating arrays, the need to insert elements at a specific index is just as common. There are multiple ways to insert elements into an array. Each of these methods has its own […]

Redirect to Another Webpage in JavaScript

There are many situations where you might want to redirect users to a different page based on some action they took. For example, if the users deleted a post, you might want to redirect them to the homepage after deletion. In this tutorial, you will learn about different methods that can be used to redirect […]

Remove or Delete a Specific Element from an Array in JavaScript

There are a lot of situations in which you might want to delete or remove a given element from an array. For example, you might be storing the id of different users playing a game in an array and once they are out, you will have to remove the id of that particular player. Similarly, […]

0%