Answers for "remove specific word from string javascript"

4

javascript remove specific character from string

var newString = oldString.replaceAll("character/string goes here", "");

// Example
var oldString = "Hello World!";
var newString = oldString.replaceAll("o", "");
console.log(newString);
// Prints 'Hell Wrld!' to console.
Posted by: Guest on September-08-2020
2

remove word from string javascript

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

How to remove text from a string in javscript

var ret = "data-123".replace('data-','');
console.log(ret);   //prints: 123
Posted by: Guest on March-25-2020

Code answers related to "remove specific word from string javascript"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language