Quick actions

cmd+k|ctrl+k

Navigation

Languages

Untitled

Snippet info

Language

JavaScript

Visibility

unlisted

Author

legacy-anonymous

Created

2020-06-10T18:42:23Z

Updated

2020-06-10T18:42:23Z

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();
});

INFO