solved JS Arrays task 2