# \[Closed\] Filter Arrays with filter(solution)

**URL:** <https://forum.freecodecamp.org/t/closed-filter-arrays-with-filter-solution/66633>\
**Category:** General\
**Created:** [December 18, 2016, 3:40am UTC](https://forum.freecodecamp.org/t/closed-filter-arrays-with-filter-solution/66633 "2016-12-18T03:40:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![IsaacAbrahamson](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/isaacabrahamson/32/30882_2.png) [@IsaacAbrahamson](https://forum.freecodecamp.org/u/IsaacAbrahamson)\
**Post date:** [December 18, 2016, 3:58am UTC](https://forum.freecodecamp.org/t/closed-filter-arrays-with-filter-solution/66633/2 "2016-12-18T03:58:01Z")

</div>

@annajuare, I am glad you got the solution working, but please do not create multiple threads on the same topic. Also, please remember to put a solution in a spoiler 🙂

> **[Iterate over Arrays with map--Need Help](https://forum.freecodecamp.org/t/iterate-over-arrays-with-map-need-help/66552)**
>
> I need help with this exercise. This is what I have done so far: var oldArray = \[1,2,3,4,5\]; // Only change code below this line. var newArray = oldArray; var plusThree = newArray.map(function(val) { return val + 3; }); ...

> **[\[Closed\] Iterate over Arrays with map(Solution)](https://forum.freecodecamp.org/t/iterate-over-arrays-with-map-solution/66617)**
>
> This is the solution for this exercise: \[spoiler\] var oldArray = \[1,2,3,4,5\]; // Only change code below this line. var newArray = oldArray.map(function(val){ return val + 3; }); console.log(addThree); console.log(oldArray); \`\`\`\[/spoiler\]

I am going to close this thread, and I also closed your other solution thread. I kept your original thread open in case you have any more questions, or please message me if you have a question about me closing it. Again, nothing wrong with posting solution, etc. But there is no need for three threads on the same topic. Happy coding!

---

_[View the full topic](https://forum.freecodecamp.org/t/closed-filter-arrays-with-filter-solution/66633)._
