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'));