Write a JavaScript function that finds the elements at even positions in an array. The input comes as array of string elements.
Examples:
Input:
['20', '30', '40']
Output:
20 40
Input:
['5', '10']
Output:
5
The output is the return value of your function. Collect all elements in a string, separated by space.