Contact: aviboots(AT)netvision.net.il
39,923 questions
51,856 answers
573 users
const str = 'javascript c++ c typescript c# node.js'; const arr = str.match(/.{1,4}/g) || []; console.log(arr) /* run: ["java", "scri", "pt c", "++ c", " typ", "escr", "ipt ", "c# n", "ode.", "js"] */