featured Image

Detect first time login of new user using googleAuth – Firebase 9

In this short article, we will see how we can detect the first-time login of a new user using googleAuth in firebase 9. If you are working with google Authentication…

Read more
featured Image

5 ways to convert string to number in JavaScript

In this article, we will see how to convert a string to a number in JavaScript. In Javascript, we can represent a number in the form of an actual number…

Read more
featured Image

How to set a default value to input with a v-model in Vue

In this article, we will learn how we can set a default value for an input field with v-model in vuejs. Let’s suppose we have a form with some input…

Read more
featured Image

JavaScript hasOwnProperty() method of an Object

In this article, we will learn about JavaScript hasOwnProperty() method of an object and its uses and limitations. What is hasOwnProperty() method? The hasOwnProperty() method of an object checks whether…

Read more
featured Image

Align the elements of input tag to center on HTML

In this article, we will learn how to center align the elements of the input tag in html. Usually, when we type anything in an input field on an HTML…

Read more
featured Image

Round to the nearest hundredth of a decimal in JavaScript

When working with decimal numbers in JavaScript, you may often need to round a number to the nearest hundredth (two decimal places). In this article, we will see different ways…

Read more
featured Image

How to check if String contains only spaces in JavaScript

In this article, we will see how to check if a string is empty or contains only spaces in JavaScript. Here, we will create a JavaScript function that will check…

Read more
featured Image

Return multiple values from a function in JavaScript

In this tutorial, we will learn how to return multiple values from a function in JavaScript. Whenever we call a function in JavaScript it returns only one value using the…

Read more
featured Image

How to multiply all numbers in an array using JavaScript

In this article, we will see how to multiply all the numbers in an array using JavaScript. Let’s say we have an array of numbers like this, [2,2,3,4] And we…

Read more