Question 1: Extract Properties and Values from Object
-
Notice that this page calls function extractPropsAndValues twice, passing in a different
object each time.
-
Modify the code in js/extractPropsAndValues.js so that
it returns a div that has one paragraph per property in obj.
(You iterate over the object properties, not knowing in advance what they might be...)
Each paragraph shall have this text: "The property named XXX has the value YYY".
Replace XXX with the property name. Replace YYY with the value of that property.