= age;
}
John = new person ("John", 13) ;
Is that object oriented programming in JavaScript or I am missing smth ?
Don't u have the keyword class ?
yes this is an example of Constructor function (class in ES5), ES6 provides some syntatic sugar by class, constructor, super, etc keywords
This is OOP, yes
Обсуждают сегодня