Coding Challenge - Looping Through the Properties of an Object

You learned how to loop through the keys and values in an associative array in PHP. Associative arrays in PHP are very similar to objects in JavaScript (both are key/value pairs - but in JavaScript they are often referred to as property name and value pairs). See if you can figure out how to loop through the properties of this JavaScript object (inside the loop simply console log each property name and it's value).

Add your code to the SCRIPT element below this paragraph. Note that the object is already declared in the SCRIPT element.