Answers for "array of words to a sentence using foreach in javascript"

56

javascript foreach

var colors = ['red', 'blue', 'green'];

colors.forEach(function(color) {
  console.log(color);
});
Posted by: Guest on June-27-2019

Code answers related to "array of words to a sentence using foreach in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language