Contact: aviboots(AT)netvision.net.il
39,881 questions
51,807 answers
573 users
let str = 'java javascript c c++ typescript php'; const N = 5; const index = str.indexOf('t'); str = str.slice(0, index) + ' '.repeat(N) + str.slice(index); console.log(str); /* run: "java javascrip t c c++ typescript php" */