Remove a character at a certain position in a string – javascript [duplicate]

It depends how easy you find the following, which uses simple String methods (in this case slice()).

var str = "Hello World";
str = str.slice(0, 3) + str.slice(4);
console.log(str)

Leave a Comment