Write a JS program that takes an array of numeric elements as input and returns the largest element of the array.
Input:
You will receive an array of numbers.
Output:
The output should be the return value of your function. It represents the largest element of the array.
Examples:
Sample Input:
[10, 20, 5]
Output:
20
Sample Input:
[1, 44, 123, 33]
Output:
123