I’ve tried a lot and I didn’t figure out why I didn’t pass the test

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

function bouncer(arr) {
let newArray  = [];
for (let i = 0; i < arr.length; i++){
 if (arr[i]) newArray.push(arr[i]);
return arr;

bouncer([7, "ate", "", false, 9]);
  **Your browser information:**

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 15_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1

Challenge: Falsy Bouncer

Link to the challenge:

Looks like you’re returning the wrong array.

@colinthornton thank you for your time here. I’ve passed the test :grinning:.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.