Help on the Basic Javascript: Use the parseInt Function problem

Hi I struggled with this problem for a while and recently asked a friend who’s more experienced for help.
I was told that it cannot be done because the rule states that it can only return one datatype. therefore I can’t received an input for the 3 elements. It only returns for the last element in the function . I tried writing the function to convert to a string multiple times and it also does not work.

Is there a way around this or is my friend correct??

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-the-parseint-function