Andrea Koutifaris
1 min readSep 10, 2018

--

Hi guys,

the debate is over. You can use functional programming, OO programming or both.

OO is done through prototype inheritance:

class AClass {
constructor() {
}
aMethod() {
}
}

The class keyword is just a sugar syntax for prototype-based inheritance.

By the way, class is now supported by almost every browser…

--

--

Andrea Koutifaris
Andrea Koutifaris

No responses yet