Article
Whether you are creating a daily routine app, your own blog, or most any other type of dynamic web app, you will probably need to work with dates. In this article, we're going to learn how to get the current date in JavaScript, so you can successfully develop your applications....
Lazar Ristic
In this tutorial, we'll take a look at how to get the current URL of a loaded HTML page, using JavaScript. Firstly, let's take a look at a URL: https://www.stackabuse.com:8080/category/article-title.html?searchterm=Example+title#2 It's a made-up URL, that contains several components -...
Dimitrije Stamenic
Oftentimes, we need to redirect users to another website or another web page on the same site. There are several ways to redirect which include JavaScript redirection, server-side redirection, and HTML meta refresh redirection. Redirection is basically a mechanism to send users to another URL address. The motivation to use...
Guest Contributor
When developing web applications - we commonly use several technologies, and languages. A back-end can easily be built in Java (Spring Boot), Python (Django or Flask), or JavaScript (Node.js), though the front-end is more commonly done in JavaScript (React, Angular, etc). Sometimes, we even take the hybrid approach of...
The class attribute in HTML is used to define a class for one or more HTML elements. This way, a lot of elements can belong to the same class of elements and share the same style in the style sheet, so you don't have to write the same style for...
Getting the last element of a list/array is a common operation. In this tutorial, we'll take a look at how to get the last element in a JavaScript array/list. JavaScript is a weakly-typed or untyped language, which means that the type of variable doesn't need to be declared...
JavaScript has a lot of useful built-in methods for string manipulation, one of these methods is the split() method. In this article we'll be taking a closer look at the split() method and how we can use it in conjunction with regular expressions to split a long string just the...
Abhilash Kakumanu
In this tutorial, we'll take a look at how to check if a string starts with a substring in JavaScript. This is easily achieved either through the startsWith() method, or regular expressions. Check if String Starts with Another String with startsWith() The startsWith(searchString[, position]) method returns a boolean which...
We oftentimes find ourselves counting the number of days from and to a date. Be it calculating when someone's due to return a book, when a subscription should be renewed, how many days have passed since a notification or when a new event is coming up. In this tutorial, we'll...
© 2013-2025 Stack Abuse. All rights reserved.