DEV Community


Discussion on: Take 'this' Quiz, Understand How 'this' Works in JavaScript

liaowow profile image
Annie Liao Author • Edited

Glad it helps, Chi! And thanks for mentioning Smalltalk -- I had to look it up haha. I don't think there's a preferred way, it all depends on your use case. Also, JavaScript's class keyword is not really a true class as in other object-oriented languages like Smalltalk. I found this deep-dive article, hope it helps as well: