Question: Please answer the following in JavaScript 15 16 console.log(- Objects, Dictionaries, and Associative Arrays -). 17 18 // create an array of three objects where
Please answer the following in JavaScript

15 16 console.log("- Objects, Dictionaries, and Associative Arrays -"). 17 18 // create an array of three objects where each object has made up values for // name, age, and favorite_color 19 www. 20 wiem Il change the age of the third object to 27 using associative array syntax 21 22 23 // using a for...of loop and object . notation, print the favorite colors 24 25 26 27 // using a for...in loop, print the property names in the first object in the array // (i.e. name, age, favorite_color) 28 29 // using Object. keys, print the array of keys in the second object (no loop, the whole thing) 30 31 32 // using Object.values, print the array of values in the second object (no loop, the whole thing)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
