I get undefined when trying to put a value

sorry if my English is bad
Im trying to get the top clip of the month of a specific channel.
when I do console.log(b.body.clips) it give me all the info but when i do var a = b.body.clips.title it makes it undefined
(if i need to give more info tell me):sweat_smile:

This is because what you’re getting back is an array, if you want the title of the clip then you need to use b.body.clips[0].title (for the first clip), b.body.clips[1].title (for the second clip) and so on

1 Like

thanks :heart:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.