Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `cx(...names)` returning a space-separated string of the truthy string arguments, ignoring falsy ones.
+ 1 hidden test run on Submit.
names.filter(Boolean) removes every falsy argument so conditional classes like cond && 'active' disappear cleanly, then join adds the spaces.
Run your code to see results.