3 ms·
JavaScript programming style
- stephenr 14y agoI agree with most of Crockford's advice here and in general about JS, but the "new" issue he mentioned is not an issue to me. It's pretty trivial to have a constructor function that can also identify if it's called without the new operator and then in fact return a new instance anyway.