i made a fetch request (i turned a text into array)and i want them to pass each array element by accident in another function.
function randomSingleWord() {
fetch('http://www.randomtext.me/api/').then(res => res.json() )
.then(data => data.text_out.split(' ');
return data //random or by order single word
}