Contact: aviboots(AT)netvision.net.il
39,885 questions
51,811 answers
573 users
let str = 'nodejs java c c++ php'; const N = 5; const index = str.indexOf('j'); str = str.slice(0, index) + ' '.repeat(N) + str.slice(index); console.log(str); /* run: node js java c c++ php */