xxxxxxxxxx
//Dot notation - get a property from object
console.log(ioseb.lastName);
//Brackets notation - get property from object
console.log(ioseb["lastName"]);
//in Brackets notation we can put any EXPRESSION
const nameKey = "Name";
console.log(ioseb["first" + nameKey]);
console.log(ioseb["last" + nameKey]);
//In Dot notation we should use actual property name not computed.
//We get UNDEFINED message in the console
//when we try to access to a property which does not exist.
//Add new properties to object
//dot notation
ioseb.location = "Georgia";
//brackets notation
ioseb["youtube"] = "thereisnospoon.";
console.log(ioseb);