solved JS Arrays task 7