Contact: aviboots(AT)netvision.net.il
39,895 questions
51,826 answers
573 users
const s = 'javascript programming language'; let match_arr = s.match(/\b(\w)/g); let first_letters = match_arr.join(' '); console.log(first_letters); /* run: j p l */
const s = 'javascript programming language'; const firstLetters = s .split(" ") .map(word => word[0]) .join(" "); console.log(firstLetters); /* run: j p l */