Answers for "javascript delete string value from"

8

javascript remove text from string

var str = "That is like so not cool, I was like totally mad.";
var cleanStr = str.replace(/like/g, "");//replace every "like" with blank ""
Posted by: Guest on August-02-2019
0

how to delete a letter from a string in javascript

substr() – removes a character from a particular index in the String.
replace() – replaces a specific character/string with another character/string.
slice() – extracts parts of a string between the given parameters.
Posted by: Guest on January-28-2022

Code answers related to "javascript delete string value from"

Code answers related to "Javascript"

Browse Popular Code Answers by Language