Answers for "write a function that remove the middle word from a string in js"

2

remove word from string javascript

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

how to remove middle characters in string javascript

var str = "Hello World";
str = str.slice(0, 3) + str.slice(4);
console.log(str)
Posted by: Guest on February-06-2021

Code answers related to "write a function that remove the middle word from a string in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language