+ 2

Classes in javascript

are there classes in javascript??

26th Apr 2017, 9:38 PM
Fedi Bbm
Fedi Bbm - avatar
3 Respostas
+ 6
Yes there are "classes" in JavaScript ES6....but are not true classes found in other languages like c, c++ or python. Instead ES6 class is just a syntactic sugar over the very old prototypal inheritance.
26th Apr 2017, 10:54 PM
Benneth Yankey
Benneth Yankey - avatar
+ 5
you can use oop in JavaScript, but it's not called a class. it's still called function.
26th Apr 2017, 9:58 PM
Mario L.
Mario L. - avatar
+ 1
c have no classes
27th Apr 2017, 6:17 AM
Fedi Bbm
Fedi Bbm - avatar