Complete the function getAreas that takes an array code example Example: javascript array const arr = [1, 2, 3];