There are so many definitions of OOP out there, varying between different books, documentation and articles.

What really defines OOP?

  • macniel@feddit.de
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago

    JavaScript has been OOP since I can remember due to its prototypal nature. Change something on an inherited prototype, and every descendant also get those changes. And “classes” is just syntax sugar for that prototype mechanism.