Answers for "how to remove a part of a string javascript"

1

how to remove a part of a string javascript

let string = "My name is Shumail";
let toBeRemove = "Shumail";
string = string.replace(tobeRemove,'');
Posted by: Guest on February-26-2022
0

javascript string remove substring

var string = "data-123";
string = string.replace('data-','');
alert(string)
Posted by: Guest on April-11-2022

Code answers related to "how to remove a part of a string javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language