OOP in JavaScript

I study JavaScript recently. There is something that makes me confuse in chapter Object Oriented Programming. Why don’t we use “class, get, set,…” syntax like other programming languages (c++, java) which were mentioned in chapter ES6 instead of using constructor function, prototype, to deal with oop work? Thanks a bunch!Screenshot from 2020-12-07 16-09-16

most of the curriculum has been written before ES6, the new 7.0 curriculum currently in progress will introduce ES6 feautures more organically as part of the language, as in the meantime it has become the current standard

2 Likes