I am creating a navigation list that is populated dynamically whenever new section element is added to the page. I first created an empty array whose purpose is to receive t