solved JS Arrays task 5