I have a string like this:
var str = "this is a ttest";  // t   h   i   s     i   s     a      t   t   e   s   t
                              // 1   2   3   4  5  6   7  8  9  10  11  12  13  14  15
Now I need to replace eighth character (t) with nothing. How can I do that?
Something like this: .replace("{eighth character}", "");
Finally I want this output:
var newstr = "this is a test";
 
     
    