Contact: aviboots(AT)netvision.net.il
39,870 questions
51,793 answers
573 users
const json = { "name":"Leo", "age":45, "kids": [ "Abbie", "Ann", "Aaric" ] } console.log(json.age); console.log(json.kids[0]); console.log(json.kids[1]); /* run: 45 Abbie Ann */
const json = { "name":"Leo", "age":45, "kids": [ "Abbie", "Ann", "Aaric" ] } for (let k in json.kids) { console.log(json.kids[k]); } /* run: Abbie Ann Aaric */