# \#loops

**URL:** https://forum.freecodecamp.org/tag/loops/358.md

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

---

## [Seek and Destroy - for loop inside of the function](https://forum.freecodecamp.org/t/seek-and-destroy-for-loop-inside-of-the-function/136881)

<div class="topic-metadata">

**Author:** [@Waxaz](https://forum.freecodecamp.org/u/Waxaz)\
**Replies:** 1\
**Last updated:** [July 18, 2017, 2:48pm UTC](https://forum.freecodecamp.org/t/seek-and-destroy-for-loop-inside-of-the-function/136881 "2017-07-18T14:48:50Z")

</div>

Hey. I've done Seek and Destroy algorithm challenge, but I'd like to make a for loop inside of the function to make it flexible. Could you give me a hint how to do that? Code's below: function destroyer(arr) { var a…

---

## [Troubleshooting a loop](https://forum.freecodecamp.org/t/troubleshooting-a-loop/135439)

<div class="topic-metadata">

**Author:** [@jnelli](https://forum.freecodecamp.org/u/jnelli)\
**Replies:** 12\
**Last updated:** [July 11, 2017, 11:27pm UTC](https://forum.freecodecamp.org/t/troubleshooting-a-loop/135439 "2017-07-11T23:27:38Z")

</div>

Hello, campers! I'm using multiple online resources to learn JavaScript, and both FCC and codecademy have finally introduced me to the loop. I've decided to try out a mini-project that involves a loop. On Sunday nigh…
