added console.log to test the array

added console.log to test the array