Console logging in HackerRank’s JavaScript

Just trying to run through the basic Hacker Rank practice tests.

They often give you an array of integers (arr) as input. Supposedly. However, using their “JavaScript(Node.js),” attempting to console.log(arr) at the outset of the function to verify the data type simply returns undefined.

Any array methods I use, whether syntactically correct or not, return undefined. Trying to console.log(“hello”) returns undefined. Its pretty infuriating that the solution is some basic difference. Lil help?

Thanks.