Contact: aviboots(AT)netvision.net.il
38,806 questions
50,501 answers
573 users
const str = "node.js php c c++"; const len = str.split(" ").filter(word => word !== '').length; console.log(len); /* run: 4 */