JavaScript JavaScript Loops, Arrays and Objects Tracking Multiple Items with Arrays Useful Array Methods

Daniel McCann
PRO
Daniel McCann
Pro Student 5,308 Points

Updating Print Function

I've been trying to update the print function myself but i have not been successful. What would be the best way to fix this. Do i need to add an event listener to the document to ensure the DOM is fully parsed?

Dave StSomeWhere
Dave StSomeWhere
19,783 Points

It will be a lot easier to help if you describe what you are trying to do, post your code and explain what isn't working.

Daniel McCann
Daniel McCann
Pro Student 5,308 Points

To be more specific in the exercise for Useful Array Methods, I'm trying to duplicate the exact results from the video and get the document to update with the appropriate html based upon questions answered correctly etc. However, document.write will not display in the middle of the loop any longer, at least not in my Chrome browser. I wasn't sure if there was a way I could alter the print function Treehouse supplies to update the page in the middle of the loop.

Dave StSomeWhere
Dave StSomeWhere
19,783 Points

Please post your code and describe what you'd like it to do and what it is actually doing and then maybe someone in the community can help.