What do you mean by “make a decision”? It should return a value and the value will be an array. Your function is not returning anything at the moment. You are using console.log to display something to the console, but that is not the same as returning a value.
return is not a function. It is a key word in JavaScript. I suggest you review the Basic JavaScript section where the return statement is first introduced.
and there is an option how to make my code work? Without changing the meaning. I can not find on the Internet. How to add two arrays into one, but so that they are two?
You should have already learned about the slice method which allows you to return “part” of an existing array. If you could take the “parts” of a a certain size and “push” them into a new array, that is an approach you could take. If you do not remember the slice method, see below for the challenge where it was introduced.