Like most object languages, JavaScript supports method chaining (or method cascading).

A given object also needs to support it.

The Express response object has some support for it.

Without Method Chaining
No method chaining/cascading here.
res.type('html');
res.status(httpStatusCodes.OK);
res.send('Greetings');
With Method Chaining
Here we chain the methods together.

Use the style you like (with or without).
res
		.type('html')
		.status(httpStatusCodes.OK)
		.send('Greetings');
With Method Chaining (Compressed)
Or, we can also tightly chain the message sends together.
res.type('html').status(httpStatusCodes.OK).send('Greetings');