re: Is `this` in Javascript bad? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: the only advantage that I could think of using this is the ability of reusing functions. Using the method suggested by my friend will create a new ...

It completely shatter the prototype which is bad IMO. Your friend's method not only create a new function each time, but prevent any ineritance.
Also, it's not possible to supercharge Car's prototype.

The "this" keyword can be tricky, but avoiding it leaves you in a land without OOP.

code of conduct - report abuse