+ 12
Are there no classes in javascript
Why the concept of class was not introduced in Java tutorial
6 Respuestas
+ 9
There are, they are at the end of the tutorial, because they have been introduced in ES6. Please don't switch between java and javascript, that is really confusing.
+ 9
Thanks
+ 5
JS is also an OO language so, yes there are.
+ 2
JavaScript doesn't have classes in the traditional OOP sense. From the mdn docs: JavaScript classes, introduced in ECMAScript 2015, are primarily syntactical sugar over JavaScript's existing prototype-based inheritance. The class syntax does not introduce a new object-oriented inheritance model to JavaScript.
+ 1
There is!
0
i swith from java to javascript . i still lost haha