Search code examples
jqueryapiconsole.logticketmaster

i am trying to console log an array from the ticket master API but can only seem to log 1 item from the array


I am currently trying to get all event names to populate in my console log, but I can only get one to show. I understand why I am only showing 1 result(because I chose object 0 in the array), but I am unsure how to get them all to show

code below console.log("event:" + response._embedded.events[0].name);

pic of array


Solution

  • You could do something like:

    console.table(response._embedded.events, ["name"])