Listing 10.02 - Longer strings as keys - Tasks 1 & 2
- Add a couple more properties to the ages object. Include spaces and other characters in the keys.
- Log the values to the console.
var ages = {};
ages["Kandra Smith"] = 56;
ages["Dax Aniaku"] = 21;
// add a couple more properties
ages["Filboid Studge"] = 120;
ages[" &- symbols *! "] = 22;
console.log(ages["Kandra Smith"]);
console.log(ages["Dax Aniaku"]);
// log the values
console.log(ages["Filboid Studge"]);
console.log(ages[" &- symbols *! "]);