solved JS Arrays task 3