In ColdFusion (a server-side language), it's possible to have CF generate any getters and setters in a class for you, like so:
component output="false" accessors="true" {
property string title;
public any function init() output = false {
setTitle("");
return this;
}
}
Here, I never write the setTitle()
setter, it's just implicit.
Is there any such thing for JavaScript (or even jQuery) in either ES5 / ES6 / ES7?