Contact: aviboots(AT)netvision.net.il
43,970 questions
57,412 answers
573 users
const arr = ['javascript', 'typescript', true, 'node.js', 'c++', true, false, true]; const count = arr.filter(value => value === true).length; console.log(count); /* run: 3 */