나혜원

event list

Showing 1 changed file with 12 additions and 0 deletions
1 +var data = require('./event.json');
2 +
3 +var data_list = data["DATA"]
4 +var concert_list = [];
5 +
6 +for(var i = 0; i < data_list.length; i++){
7 + if (data_list[i].codename=="콘서트"){
8 + concert_list.push(data_list[i].title);
9 + }
10 + }
11 +
12 +console.log(concert_list);
...\ No newline at end of file ...\ No newline at end of file