Deleted the test console.log to test my array. Also added the remainder of the code to complete the problem.