remove specific string from string javascript code example
Example 1: javascript remove specific character from string
var newString = oldString.replaceAll("character/string goes here", "");
var oldString = "Hello World!";
var newString = oldString.replaceAll("o", "");
console.log(newString);
Example 2: How to remove text from a string in javscript
var ret = "data-123".replace('data-','');
console.log(ret);
Example 3: remove substring from string javascript
var ret = "data-123".replace('data-','');
Example 4: js remove string from string
var ret = "data-123".replace('data-','');
console.log(ret);