WEBIONISTA
LATEST
Javascript- how to replace all spaces with dashes
In this very short article, we will learn how to replace spaces with dashes using the .replace method in JS. const str…
Remove commas from string – Javascript
Let’s look at how you can achieve that!Well to be honest there isn’t much to it we will just use replaceAll. const…
Javascript – remove the last digit from a number
In this brief explanation, we will learn how to remove the last digit by using basic math So the first and only…
Javascript – get yesterday’s date
Kompot 1. method: setDate First, let’s initiate the date and assign it to the “yesterday” variable const yesterday = new Date() Next,…
how to check if key exists in an object (Javascript)
Let’s learn how you can check if a key exists in two different waysBoth are very easy. Firstly let’s define our object…
Check if string is uppercase (Javascript)
In this very short article, we will learn how to check if the string is uppercase. Let’s start with the very obvious…
Javascript – how to remove emojis from a string
In this concise article, we will learn how to remove emojis from a string by using the power of regex. Firstly let’s…