I have an array like this below
const userArray = ['school', 'science', '', '', null, 'bachelors', 'final', undefined, null]
As you can notice, i have 2 empty string, 2 null and 1 undefined in it. So the total is 5.
how can i loop through each time and still get total count of empty string, null and undefined in the array.