Skip to Content

JavaScript Practice: Arrays, Loops, Objects, Iterators

Practice intermediate JavaScript concepts with these 3 code challenges.

In these exercises, you will practice working with intermediate JavaScript concepts. This is helpful if you want to practice implementing loops and working with arrays, objects, and iterators.

Some of these challenges are difficult! Take some time to think about them before starting to code.

You might not get the solution correct on your first try — look at your output, try to find where you’re going wrong, and iterate on your solution.

Finally, if you get stuck, use our solution code! If you “Check Answer” twice with an incorrect solution, you should see an option to get our solution code. However, truly investigate that solution — experiment and play with the solution code until you have a good grasp of how it is working. Good luck!