return to return in console
royalgreen50 (0)

my return is not returning in the console for the repl so idk if it is working.

You are viewing a single comment. View All
royalgreen50 (0)

function bouncer(arr) {
// Don't show a false ID to this bouncer.

return arr;

bouncer([7, "ate", "", false, 9]);

/*Remove all falsy values from an array.

Falsy values in JavaScript are false, null, 0, "", undefined, and NaN.

Hint: Try converting each value to a Boolean.

Remember to use Read-Search-Ask if you get stuck. Write your own code.*/