JavaScript DOM - Using NodeLists and Converting to an Array
问题 so I will preface my question with letting you know that this is an assignment for school. I have been working to solve this and I have tried to find the solution within the MDN documentation and I am at a loss. I have to: Grab a NodeList of bugs Convert the NodeList to an Array Here is my index.html file: <!DOCTYPE html> <html> <head> <title>Bugs in the DOM</title> </head> <body> <div> <h1>Bugs in the DOM</h1> <ul> <li>Horse Flies</li> <li>Bed bugs</li> <li>Mosquito</li> <li>Ants</li> <li