0

I need to print every item in the array without using console.log.

Any solutions?

function wrap(stringBreak) {
  let text = stringBreak.trim().split(' ');
  text.forEach(element => {
    return element;
  });
}
console.log(wrap('this is a test'));
isherwood
  • 58,414
  • 16
  • 114
  • 157
JowDi
  • 1

0 Answers0