Objects
Objects are the collection of key
, value
pairs and each pair of key-value are known as a property. Here, the property of the key
can be a string
whereas its value
can be of any value.
📝 Tasks:
Given a Doe family that includes two-member, where each member's information is provided in form of an object.
💡 Hints:
You can get
luckyNumbers
from each person object inside the family object.Once you get each array just loop over it adding every element and then add each sum of the 3 family members.
Last updated
Was this helpful?