Contact: aviboots(AT)netvision.net.il
40,769 questions
53,151 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" */