/* The dot notation and bracket notation both are used to access the object
properties in JavaScript. */
/* The main difference between dot notation and bracket notation is that the
bracket notation allows us to access object properties using variable. */
// Object
let obj = {
firstName: 'Derrick'
lastName: 'Rose'
}
// Dot notation
console.log(obj.firstName)
// Output: Derrick
// Bracket notation
console.log(obj['lastName'])
// Output: Rose
let obj = {
cat: 'meow',
dog: 'woof'
};
let sound = obj.cat;
console.log(sound);
// meow