How to create a counter in JavaScript – Multiple methods

In this tutorial, let’s look at how to create a counter in JavaScript. We’ll be creating 3 types of counters here: a click counter, an increment and decrement counter, and finally, an animated counter that counts down on its own. Let’s get right into it then! Click counter in JavaScript Let’s start with the click … Read more How to create a counter in JavaScript – Multiple methods

How to print Odd Numbers in JavaScript – Multiple methods

In this tutorial, let’s look at the different ways to print odd numbers in JavaScript. We’ll be using the ‘modulus’ operator to figure out whether a number is an odd number or not. We’ll be looking at different problem statements (printing odd numbers within a range, within a user given range and within an array) … Read more How to print Odd Numbers in JavaScript – Multiple methods

How to remove spaces from a string in JavaScript?

In this tutorial, we’re going to look at different to replace and remove spaces from string in JavaScript. We’ll be using a combination of pre-defined string methods in JavaScript to start with, and then finish the tutorial with an example of how we’ll solve the issue manually, without any pre-defined methods. Let’s get right into … Read more How to remove spaces from a string in JavaScript?

How to create and use JavaScript alert boxes?

In this tutorial, we’ll be looking at the alert syntax in JavaScript. Let’s look at the different ways of using alert boxes to display messages and information on your browser screen. The alert function is a pre-defined function in JavaScript. It accepts one argument, and it displays whatever information is given to it, at the … Read more How to create and use JavaScript alert boxes?

How to create an object in JavaScript – The ultimate guide

In this tutorial, we’ll be looking at how to create an object in JavaScript. I’ve left no stone unturned, so this is pretty much the only tutorial you’ll need on this subject. Alright then. Let’s dive right into it. As you know, objects are used to create a real world representation in programs, and they … Read more How to create an object in JavaScript – The ultimate guide

Javascript Remove Character from String – The complete tutorial

In this tutorial post, let’s look at the different ways to remove a character from a string. We’ll be looking and multiple ways of removing a character, but also solutions to multiple problem statements within this problem as well. To start with, let’s look at removing every instance of a given character from a string. … Read more Javascript Remove Character from String – The complete tutorial

Javascript string to lowercase – How to convert a string to lowercase in Javascript

In this tutorial, let’s look at different ways of converting a given string to lowercase. There are multiple ways of doing the same, one of the easiest is to convert every character into lowercase, regardless of where it is. This means we’ll be converting the first letter in a sentence to lowercase as well. Let’s … Read more Javascript string to lowercase – How to convert a string to lowercase in Javascript