Skip to main content
DevTyp.i.ng
Back

Share

How to use for-loop to loop through an array with Javascriptjavascript

00:00:00

Press Esc to exit this exercise.

const people = ["Sam", "Alex", "Charlie"];

people.forEach(person => {
  console.log(person);
});