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