Method Chaining and Fluent Interfaces
Designing functions/methods that return the calling object (usually this) so multiple calls can be strung together in one expression.
Method chaining is a design style where each method on an object returns the object itself (typically this, or a new instance of the same type), allowing consecutive method calls to be strung together into a single, readable expression instead of a sequence of separate statements. It's common enough in real APIs — array methods, promise chains, jQuery, query builders — that interviewers ask about it both as an API design pattern and as a chance to check comfort with this.
Method chaining is like a factory assembly line where each station hands the same product straight to the next station without setting it down — you get to describe the whole process (weld, paint, inspect) in one continuous line instead of carrying the item back and forth between separate workbenches.