Objects

Objects have received some new updates in this edition of the language, including everything from new methods to updated syntax.

Shorthand methods

One nice addition to objects is the shorthand method syntax. We will see this pattern come up again when we talk about classes. As a reminder, here is what the original syntax looks like.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy