Course · Section 2: JavaScript Fundamentals – Part 1 · Lecture 11: Data Types
Implement `countTruthy(arr)` returning how many elements of `arr` are truthy.
+ 1 hidden test run on Submit.
filter(Boolean) drops every falsy element, so its length is the number of truthy values.
Run your code to see results.