By rudyjahchan
via blog.carbonfive.com
Submitted: Feb 12 2013 / 13:39
Syntatic sugar makes for more human-readable code and, if done correctly, provides for more flexibility. Many turn to Coffeescript to add that “sweetness”, but you can also achieve it with plain old Javascript, through Object.defineProperty. Here's how.
Add your comment