# Falsy Bouncer / NaN

**URL:** <https://forum.freecodecamp.org/t/falsy-bouncer-nan/80020>\
**Category:** General\
**Created:** [January 24, 2017, 11:31am UTC](https://forum.freecodecamp.org/t/falsy-bouncer-nan/80020 "2017-01-24T11:31:54Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ArielLeslie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arielleslie/32/264841_2.png) [@ArielLeslie](https://forum.freecodecamp.org/u/ArielLeslie)\
**Post date:** [January 24, 2017, 2:55pm UTC](https://forum.freecodecamp.org/t/falsy-bouncer-nan/80020/7 "2017-01-24T14:55:34Z")

</div>

I cleaned up your code.  
You need to use triple backticks to post code to the forum.  
See [this post for details](http://forum.freecodecamp.com/t/forum-code-formatting/25574).

This is a common misunderstanding with the Falsy Bouncer. You _can_ make a solution for this challenge which tests against a hardcoded list of falsy values, but it misses the point of the exercise. The concept of values being “falsy” isn’t something made up by Free Code Camp for the purposes of this challenge, but rather a quality that values have in programming languages. A value is falsy if the language treats the value as `false` when it is evaluated as a boolean. This means that `Boolean(someFalsyValue)` is `false` but also that we can use it in a conditional like `if (someFalsyValue)`. We can also talk about values being “truthy”. As I’m sure you’ve guessed, truthy values evaluate to `true` in a boolean of logical context.

```javascript
if (someFalsyValue) {
    // this code block is not entered
}
else if (someTruthyValue) {
    // this code block is entered and executed
}

```

---

_[View the full topic](https://forum.freecodecamp.org/t/falsy-bouncer-nan/80020)._
