data.forEach(video => { const listItem = document.createElement('li'); listItem.textContent = `${video.title} (${video.year})`; filmographyList.appendChild(listItem); }); } catch (error) { console.error('Failed to fetch filmography:', error); } });