Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var response = {
- data: [
- {
- name: "Name1",
- age: 19,
- city: "C01"
- },
- {
- name: "Name2",
- age: 29,
- city: "C01"
- },
- {
- name: "Name3",
- age: 18,
- city: "C02"
- }
- ],
- cities: [
- {
- id: "C01",
- name: "Chennai"
- },
- {
- id: "C02",
- name: "Mumbai"
- },
- {
- id: "C03",
- name: "Raipur"
- },
- {
- id: "C04",
- name: "Agra"
- }
- ]
- }
- var onlyAgeLessThan20 = null
- var onlyNameCityProps = null
- var totalAge = null
- // Write declaration for variables p1 and p2 to receive
- // the first two objects from the array 'list'
- // Write declaration of variables name and city to be
- // assigned from the variable p1 defined above
Add Comment
Please, Sign In to add comment