In this tutorial, you will learn how to check if string is digits only in javascript. A string is just plain text and that text can contain digits, letters, special characters, etc. A digit is formed by the combination of numbers from 0 to 9. There are numerous ways to detect whether a string is
In this tutorial, you will learn how to check if string is capitalized in javascript. Any content in the form of plain text is considered to be a string. A string generally contains a bunch of letters in the form of a text. If those letters are written in capital, then that string is known
In this tutorial, you will learn how to check if a string is a valid URL in javascript. A URL is just a unique address of a resource on the web. URL stands for Uniform Resource Locator. There are numerous ways to check if a string is valid URL. We are going to use one
In this tutorial, you will learn how to check if a string is a valid email in javascript. Email validation is a very important part of web development because you don’t want to store users in your database with invalid email addresses. An email consists of 3 parts. The first part can have random text,
In this tutorial, you will learn how to check if a string is in JSON format in javascript. JSON stands for JavaScript object notation syntax which is a standard text-based format to represent structured data based on javascript object syntax. We do have JSON.parse() and JSON.stringify() methods available to convert JSON string to javascript object