Why there are 7 or "ate" doesn`t return as true

Why there are 7 or "ate" doesn`t return as true
0

#1

Tell us what’s happening:

why there are 7 or “ate” doesn’t return as true, and then there are doesn`t count as boolean? sorry for my english

Your code so far


function bouncer(arr) {

return arr.filter(Boolean);

}

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-algorithm-scripting/falsy-bouncer


#2

Your code passes the tests for me.
Do you have any other question?


#3

If you are using Safari or Edge, you should try using Chrome which works the best with the curriculum tests.