Tag: JavaScript
JavaScript: Check if String Starts with LowerCase
A general requirement many people encounter while working with javascript strings is to check if the first letter of the string is lowercase. This article demonstrates easy ways to check if the string starts with lowercase using different methods and illustration examples. Table of Contents: Check if String Starts with LowerCase using toLowerCase() Check if …
JavaScript: Check if String Starts with UpperCase
A general requirement many people encounter while working with javascript strings is to check if the first letter of the string is capitalized. This article demonstrates easy ways to check if the string starts with uppercase using different methods and illustration examples. Table of Contents: Check if String Starts with UpperCase using toUpperCase() Check if …
JavaScript: Check if String Starts with Space
A general requirement many people encounter while working with javascript strings is to check if the first letter of the string is a space. This article demonstrates easy ways to check if the string starts with a space using different methods and illustration examples. Table of Contents: Check if String Starts with Space using RegExp …
JavaScript: Check if String Starts with Special Character
A general requirement many people encounter while working with javascript strings is to check if the first letter of the string is a special character. This article demonstrates easy ways to check if the string starts with a special character using different methods and illustration examples. Table of Contents: Check if String Starts with Special …
JavaScript: Check if String Starts with Special CharacterRead More
JavaScript: Find ASCII Code of Characters
While working with javascript strings and characters, we often encounter a requirement to get the ASCII value of a character. This article demonstrates easy ways to get the ASCII code of characters using different methods and various example illustrations. ASCII codes are the numeric value given to the characters and symbols for storing and manipulation …
JavaScript: Convert ASCII Code to Characters
While working with javascript strings and characters, we may encounter a requirement to convert the ASCII value to specific characters. This article demonstrates easy ways to covert the ASCII code to their respective characters using different methods and various example illustrations. ASCII codes are the numeric value given to the characters and symbols for storing …
Javascript: Remove First and Last Character from String
This article will remove leading and trailing characters from a javascript string using different methods and example illustrations. While developing in any language, removing the first and last characters from the string is common before processing it, as it might be an address or URL. We will discuss both cases: if the character is known …
Javascript: Remove First and Last Character from StringRead More
Javascript: Remove Parenthesis from String
This article will remove all brackets from a javascript string using different methods and example illustrations. While developing in any language, removing the parenthesis from a string is common before processing it. We will also discuss removing square brackets and other brackets in this article. Table of Contents:- Javascript String Remove Parenthesis using replace() Javascript …
JavaScript Remove Zeros from a String
This article will remove all zeros from a javascript string using different methods and example illustrations. While developing in any language, removing zeros from a string is common before processing it. Here, we will discuss removing leading zeros, trailing zeros, and other zeros within the string. We will be using replace() and replaceAll() methods of …
JavaScript Remove Hyphens from a String
This article will remove all dashes (‘-‘) from a javascript string using different methods and example illustrations. While developing in any language, removing dashes or hyphens from a string is common before processing it, as it might be a phone number, for example. Table of Contents:- Javascript String Remove Hyphens using replace() Javascript String Remove …