By CodeJustin
via mattsnider.com
Published: Jun 17 2009 / 13:39
When a JavaScript object can be configured in a variety of ways, it is best-practice to include a configuration object in the constructor, where all configuration values are optional. This way, the developer can configure an object when it is instantiated, without having to provide parameters that are common to most instances of an object.
Tweet
SaveShareSend
Tags: javascript



Add your comment