Write a function that takes an array (a) as argument. Return the number of elements in a.
How to solve it
This challenge can be solved by using
array.length. The length property exists on every instance of an array and stores the number of elements inside the array.
const arr = [1,2];
// output: 2