Answers for "get rid of a word within a string js"

2

remove word from string javascript

var str = "delete-this"
str.replace('delete-','') // str = "this"
Posted by: Guest on July-18-2021

Code answers related to "get rid of a word within a string js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language