Shorthand for Defining Operations in Objects
'Concise method syntax' - a new feature of ES6
We'll cover the following
As the name suggests, function declaration using the concise method syntax requires less typing, but that’s not the only advantage.
Let’s declare a logArea
method in our shape
object:
Get hands-on with 1400+ tech skills courses.