Javascript

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 …

JavaScript Remove Hyphens from a String Read More »

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 Zeros from a String Read 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 Parenthesis from String Read More »

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 String Read More »

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: Convert ASCII Code to Characters Read 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: Find ASCII Code of Characters Read More »

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 Character Read More »

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 LowerCase Read More »

Scroll to Top