Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Falsy bouncer #11976

Closed
frogo123 opened this issue Dec 9, 2016 · 1 comment
Closed

Falsy bouncer #11976

frogo123 opened this issue Dec 9, 2016 · 1 comment

Comments

@frogo123
Copy link

frogo123 commented Dec 9, 2016

Hi, below is my code for the Falsy Bouncer project which returns the expected value into the black console screen.

The problem I have is that all the challenges fail except the (["a", "b", "c"]) one which out of the 4 is the only one that returns all the original values.

I have spent some time on the Falsy Bouncer and I'm unsure what to do next as the code I have returns the answers I been looking for so I would appreciate any advie.
Thanks
Challenge Falsy Bouncer has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

function bouncer(arr) {
  // Don't show a false ID to this bouncer.
  if (arr !== false){
  return arr;
  }
}
var items = [7, "ate", "", false, 9];
 items.filter(bouncer);
@erictleung
Copy link
Member

@frogo123 Thank you for reporting this issue. You code is incorrect and doesn't satisfy the requirements of the challenge. Hint: ask yourself, do you understand what a "falsy" value is in JavaScript?

This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "help" button on the challenge on Free Code Camp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.

If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants