var schedule = [
{
day: 1,
videos: [
{
link: 'https://youtu.be/2MoGxae-zyo',
image: 'workout-lose-weight.webp',
},
{
link: 'https://youtu.be/2pLT-olgUJs',
image: 'workout-abs.webp'
},
{
link: 'https://youtu.be/L_xrDAtykMI',
image: 'workout-flexibility.webp',
},
],
},
{
day: 2,
videos: [
{
link: 'https://youtu.be/111',
image: 'workout-lose-weight__111.webp',
},
{
link: 'https://youtu.be/2222',
image: 'workout-abs__222.webp'
},
{
link: 'https://youtu.be/333',
image: 'workout-flexibility__333.webp',
},
],
}
];
schedule.forEach(function(item){
console.group('Day : '+item.day);
item.videos.forEach(function(video){
console.group('Video :');
console.log('link : '+video.link);
console.log('image : '+video.image);
console.groupEnd();
});
console.groupEnd();
});