Contact: aviboots(AT)netvision.net.il
43,871 questions
57,243 answers
573 users
let str = "typescript php c++"; const index = 2; const replacement = 'QPO'; str = str.substring(0, index) + replacement + str.substring(index + replacement.length); console.log(str); /* run: "tyQPOcript php c++" */