# \#symmetricdifference

**URL:** https://forum.freecodecamp.org/tag/symmetricdifference/334.md

[Latest](https://forum.freecodecamp.org/latest.md) · [Categories](https://forum.freecodecamp.org/categories.md) · [Tags](https://forum.freecodecamp.org/tags.md)

---

## [Why 5 in \[1, 3, 5\] returns false?](https://forum.freecodecamp.org/t/why-5-in-1-3-5-returns-false/134642)

<div class="topic-metadata">

**Author:** [@luis-alves](https://forum.freecodecamp.org/u/luis-alves)\
**Replies:** 7\
**Last updated:** [July 7, 2017, 10:26am UTC](https://forum.freecodecamp.org/t/why-5-in-1-3-5-returns-false/134642 "2017-07-07T10:26:21Z")

</div>

I have the following code, but while I loop thru the array comparing numbers I get a strange effect. At some point I'm checking if 5 in \[1, 3, 5\] and it returns false! What is this all about? The other number passes corr…
