Answers for "splice in javascript in string"

1

can i use splice in string of javascript

yes i can
Posted by: Guest on February-14-2022
2

string splice

newStr = str.split(''); // or newStr = [...str];
newStr.splice(2,5);
newStr = newStr.join('');
Posted by: Guest on July-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language