5 ms·
Why is adding a property to a function "pollution"? Functions are objects and the sooner you learn it, the better. My objects have properties for whatever I nee
by ellyagg 17y ago
Why is adding a property to a function "pollution"? Functions are objects and the sooner you learn it, the better. My objects have properties for whatever I need them to. I don't feel bad that I can define objects without tons of boilerplate and bookkeeping. It's one of JavaScript's charms.