• 0 Posts
  • 7 Comments
Joined 11 months ago
cake
Cake day: August 15th, 2023

help-circle




  • Of course, but OOP is typically about putting methods on classes, inheritance of behaviour etc.

    JS Objects aren’t typically used that way, they tend to be used as pure data containers. At least, that’s how we mostly use them.

    Occasionally, we’ll use objects to simplify passing multiple arguments including arrow functions, but I’d say that doesn’t really count unless the arrow function mutates the object it’s a part of.