Join the Treehouse affiliate program and earn 25% recurring commission!
✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python
Bummer! You have been redirected as the page you requested could not be found.
Being able to loop over items in an array is a crucial skill to understand as a developer. The popular JavaScript array method forEach() allows you to do this with clean, simple syntax. Follow along as Dustin explains and demonstrates forEach().
Stick around for the second video to see it in a real-world example! Dustin builds a simple settings app that includes toggle switches and status messages based on the user's input.
Dustin is a passionate developer, lifelong learner, and Technical Evangelist for Treehouse.