How do I print data to table rows from multiple arrays within a larger array retrieved from an API?
I cannot think of the most apt way to phrase this question, so please forgive me if this description doesn’t fully match the title. For context, I am working on an NFL database presentation site that I asked for help with a few days ago (How can I correctly print different contents of an array retrieved from an API using JavaScript?) and I am now wondering how I can pull some more complex array information from a different endpoint. Here is the relevant .js:
How can I correctly print different contents of an array retrieved from an API using Javascript?
I am fascinated by both American football and APIs, so I am learning how to make a football database. As of now I am attempting to print a simple list of the NFL’s teams and their win/loss record, given the input of a year. Here is my script.js file: