Javascript Foreach

Source URL: N/A

Language: javascript

Created on: 2020-07-16 05:40:57

let numbers = ['one', 'two', 'three', 'four'];

numbers.forEach((num) => {
  console.log(num);
});  // one   //two //three // four
Javascript Foreach
content_copy