Exercise
Write a JavaScript function to get the first and last element of an array.
Write a JavaScript program to compute the sum and product of an array of integers.
Write a JavaScript program to find the leap years in a given range of years.
Write a simple JavaScript program to join all elements into a string.