+ 12

Are there no classes in javascript

Why the concept of class was not introduced in Java tutorial

26th May 2019, 10:29 AM
Spiff Jekey Green
Spiff Jekey Green - avatar
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.
26th May 2019, 10:35 AM
Airree
Airree - avatar
+ 9
Thanks
26th May 2019, 10:38 AM
Spiff Jekey Green
Spiff Jekey Green - avatar
+ 5
JS is also an OO language so, yes there are.
26th May 2019, 1:02 PM
Sonic
Sonic - avatar
+ 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.
17th Jun 2019, 5:23 AM
KKJ
+ 1
There is!
7th Jun 2019, 2:58 AM
Miracle Elisha
Miracle Elisha - avatar
0
i swith from java to javascript . i still lost haha
8th Jun 2019, 10:06 AM
Josepedro
Josepedro - avatar