Sep 5, 2022

How to iterate through a string in JavaScript

Learn two ways to iterate through a string in JavaScript

Sep 15, 2021

How to split a string into words in JavaScript

Learn to split a sentence into words in JavaScript using the string.split() method

Nov 14, 2020

How to remove a particular substring from a string in javascript

Learn to use the replace() and the split() method to remove a substring from a string in JavaScript

Sep 27, 2020

How to convert a string to a boolean in JavaScript

Learn to convert a string to a boolean in JavaScript

Sep 14, 2020

How to check if a string starts with substring in JavaScript

In this tutorial, I have discussed 4 ways to check if a JavaScript string starts with a substring

Sep 8, 2020

How to check if a string contains a substring in JavaScript

In this tutorial, I have discussed how to check if a sting contains a substring in JavaScript using includes() and indexOf() methods

Sep 7, 2020

How to uppercase the First Letter of a String in JavaScript

Uppercase the first letter of a sting in JavaScript using slice() and toUpperCase() methods

Sep 5, 2020

How to Repeat a String in JavaScript

4 best ways to repeat a string for N number of times in JavaScript, using Array.join(), string.repeat(), for loop, and recursion

Sep 3, 2020

How to convert an Array to a String in JavaScript

4 different ways to convert an array to a string in JavaScript - forEach, join, reduce, and toString methods.