Exercise

  1. Write a JavaScript function to get the first and last element of an array.

  2. Write a JavaScript program to compute the sum and product of an array of integers.

  3. Write a JavaScript program to find the leap years in a given range of years.

  4. Write a simple JavaScript program to join all elements into a string.

results matching ""

    No results matching ""