SyntaxFix
Write A Post
Hire A Developer
Questions
var str = 'Hello World', i = 3, result = str.substr(0, i-1)+str.substring(i); alert(result);
Value of i should not be less then 1.
i
1