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:

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.