How do you define an OOP class in JavaScript?

前端 未结 7 693
野性不改
野性不改 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:22

    In JavaScript everything is a object. So even a function is a object. So in js (less then < version 2), function makes classes (which are first class objects themselves). Go here, here and herefor understanding better

提交回复
热议问题