Fluent Interfaces in JavaScript
A couple of days ago, I had a technical interview and one of the exercises was OOP and **Fluent Interface**, I had seen its use a couple of times, but I had never had to develop anything similar. ## Fluent Interface The Fluent Interface is often referred to as *Method Chaining*, *Fluent API* or *jQuery Style*. A fluent interface is an object-oriented API whose design relies extensively on method chaining. Its goal is to increase code legibility by creating a domain-specific language (DSL). The term was coined in 2005 by Eric Evans and Martin Fowler <sup>[1]</sup>. If you ever worked with...
JavaScript