JavaScript algorithm challenge: Falsy bouncers

Am I close to getting it or should I scrap what I’m doing? I tend to get close only to give up later.

function bouncer(arr) {
var bouncer = arr.filter(function(bouncer)undefined, null, NaN, 0, “”, false);

return arr;
}

bouncer([7, “ate”, “”, false, 9]);

Array.prototype.filter() only has one argument (a callback function). Your arr.filter( ) call is passing 6 arguments.

Thanks I manged to get it to work.