how to remove middle characters in string javascript

Solutions on MaxInterview for how to remove middle characters in string javascript by the best coders in the world

showing results for - "how to remove middle characters in string javascript"
Kyllian
09 Sep 2016
1var str = "Hello World";
2str = str.slice(0, 3) + str.slice(4);
3console.log(str)