I have an object video
for the view of my node.js app which contains the following.
{ title:
[ 'Jason Fried: Why work doesn\'t happen at work',
'John Maeda: How art, technology and design inform creative leaders',
'From Storytelling to Storylistening: John Maeda (Future of StoryTelling 2014)' ],
url:
[ 'https://www.youtube.com/watch?v=5XD2kNopsUs&feature=youtu.be',
'http://www.youtube.com/watch?v=WAuDCOl9qrk&feature=youtu.be',
'http://www.youtube.com/watch?v=U8-Q70gV2Yk&feature=youtu.be' ] }
I'm trying to loop through these keys and print all the values but I'm not sure if my approach is on the right track. Because I get nothing printed.
<% for (var i = 0; i < video.length; i++) {
var videoAtr = video[i];
for (var key in videoAtr) { %>
<li>
<%= video[i][key] %>
</li>
<% }
} %>
UPDATE
I'd like to print like the following way.