CodeIntermediate

Syntactic sugar

Also known as syntactical sugar

Convenient syntax that expresses an existing operation more clearly or briefly without adding fundamentally new capability.

In the real world

In a typical class, JavaScript method syntax is shorter than assigning equivalent functions individually.

Related

Go a little deeper