+ 3

OOP with Javascript?

5th May 2018, 9:24 PM
Cristopher Pereira Moreira
Cristopher Pereira Moreira - avatar
7 Respostas
+ 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 } }
5th May 2018, 10:02 PM
KrOW
KrOW - avatar
+ 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
5th May 2018, 10:59 PM
KrOW
KrOW - avatar
+ 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
8th May 2018, 3:41 PM
Morpheus
Morpheus - avatar
+ 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.
5th May 2018, 10:19 PM
Adam
Adam - avatar
+ 2
👍👍
5th May 2018, 11:09 PM
KrOW
KrOW - avatar
0
thanks standard way reflects better for me the object creation
5th May 2018, 9:40 PM
Cristopher Pereira Moreira
Cristopher Pereira Moreira - avatar
0
there are cool things with TypeScript and ReactJS thanks guys!
5th May 2018, 10:57 PM
Cristopher Pereira Moreira
Cristopher Pereira Moreira - avatar