Below are revisions for this snippet.

One line property setter, getter Javascript class





Syndication

Revision Revison 1
This is the prototype for adding property getter and setter for any Javascript class. The construction and usage of the getter and setter methods allows the "chainability" of methods in one line. Detail discussion can be found inOne line properties setter and getter for Javascript class