Answers for "Array helper functions in ES6"

0

Array helper functions in ES6

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

function print(val) {
  console.log(val)
}

colors.forEach(print)
Posted by: Guest on April-10-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language