Skip to content

Tag Archives: javascript-string

In order to check the validity of a string whether it is a JSON string or not, We’re using the JSON.parse()method with a few variations.… Read More
In this article, we will convert a string into a date using Javascript. A string can be converted into a date in JavaScript through the… Read More
We have a string with extra spaces and if we want to display it in the browser then extra spaces will not be displayed. Adding… Read More
In this article, we will delete the first character of a string in Javascript. There are many ways to delete the first character of a… Read More
We will replace all dots in a string using javascript. There are 4 methods to replace the dots(.) in the string all of them are… Read More
In this article, we are given a string of size len, the task is to get the last character of a string. There are many… Read More
In this article, we will strip all non-numeric characters from a string. In order to remove all non-numeric characters from a string, replace() function is… Read More
These 2 functions are quite similar in their Syntax But are different in some cases. Let’s see the difference between them. JavaScript slice() Method: This… Read More
Both of the functions are used to get the specified part of the string, But there is a slight difference between them.  JavaScript str.substr() Function:… Read More
In JavaScript, we can count the string occurrence in a string by counting the number of times the string is present in the string. JavaScript… Read More
In this article, we will convert a string to a title case in such a way that every new word begins with a capital(uppercase) letter. … Read More
Comparing strings in a case-insensitive manner means comparing them without taking care of the uppercase and lowercase letters.  To perform this operation the most preferred… Read More
In this article, we are given an input string and the task is to reverse the input string. We have various methods to reverse a… Read More
The array of objects can be sorted by using user-defined function. This function compares the array of objects by its property. For example, the first… Read More
Sometimes it is needed to convert a string representing a boolean value “true”, or “false” into the intrinsic type of JavaScript. In this article, we… Read More

Start Your Coding Journey Now!