💥 2026 New Year's Sale 💥 Take 50% off your first 6 months! (new subscribers only, renews at regular price).
Join the Treehouse affiliate program and earn 25% recurring commission!
Bummer! You must be logged in to access this page.
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.