We can define methods directly
inside an object's definition.
In the example given above,
we are defining the method displayGreeting
directly inside the admin object.
Defining object methods using arrow functions
should always be preferred.
However, there are cases where we need to use
traditional function definitions
to define object methods.
There are two ways to do that.
We can also use the object property shorthand
to define object methods.