Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to remove a part of a string javascript

let string = "My name is Shumail";
let toBeRemove = "Shumail";
string = string.replace(tobeRemove,'');
 
PREVIOUS NEXT
Tagged: #remove #part #string #javascript
ADD COMMENT
Topic
Name
2+5 =