+ 3
OOP with Javascript?
7 Respuestas
+ 3
... and last ES version class form:
class Animal{
constructor(name,age,type){
this.name= name
this.age= age
this.type= type
}
getName(){
return this.name
}
}
+ 3
「HAPPY TO HELP」 While there are some pitfalls, basically its simple ... I have used some of it in my code
https://code.sololearn.com/WmDleRRFZ2W7/?ref=app
+ 3
we have few helping posts regarding that in here somewhere
but there's a good book as well packt object oriented JavaScript , might find download links on Google for free
https://www.sololearn.com/discuss/739193/?ref=app
+ 2
Really looking forward to browsers in general allowing ES6 & 7 without having to transpile back to ES5. Prototype is OOP but will be nice to have the same language syntax as every other language.
+ 2
👍👍
0
thanks standard way reflects better for me the object creation
0
there are cool things with TypeScript and ReactJS thanks guys!