DEV Community

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

Collapse
 
liaowow profile image
Annie Liao • 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: scotch.io/tutorials/better-javascr...