Answers for "how to print a part of an array in js without loop"

0

how to print array in js without loop

var txt = "";
var numbers = [45, 4, 9, 16, 25];
numbers.forEach(myFunction);

function myFunction(value, index, array) {
  txt = txt + value + "<br>";
}
Posted by: Guest on May-28-2020

Code answers related to "how to print a part of an array in js without loop"

Code answers related to "Javascript"

Browse Popular Code Answers by Language