How do you define an OOP class in JavaScript?

前端 未结 7 692
野性不改
野性不改 2020-12-20 19:32

Based on my observation, the book that I am reading about JavaScript states that there\'s an OOP with JavaScript? It doesn\'t tell much about it, I mean it wasn\'t explained

相关标签:
7条回答
  • 2020-12-20 20:33

    There is no one standard way of doing OOP in JavaScript. Everyone uses slightly different class/instance systems and most books fudge the issue. See this question for discussion of ways to work with OO in JS and pick your favourite.

    0 讨论(0)
提交回复
热议问题