Compact and Join Array

# Introduction In this lab, we will be exploring the `compactJoin` function in JavaScript. This function allows you to remove falsy values from an array and join the remaining values into a string. You will learn how to implement this function using `Array.prototype.filter()` and `Array.prototype.join()`. By the end of this lab, you will have a better understanding of how to manipulate arrays in JavaScript.

|60 : 00

Click the virtual machine below to start practicing