Re:An introduction to the JavaScript Module Pattern
by lukeholder on Friday April 13, 2012 @08:42PM
(#3839445)
Does anyone else think it would be a good idea to also name the internal methods/functions with an underscore?
[ Parent
| on HN ]
Re:An introduction to the JavaScript Module Pattern
by MatthewPhillips on Friday April 13, 2012 @09:06PM
(#3839502)
There's no advantage or disadvantage to underscores. It somewhat makes sense on an exposed object to denote to the consumer that they shouldn't call/use the property. otherwise it doesn't matter.