oklahoma's comments

oklahoma | 7 years ago | on: ES6 Classes

You don't have to bind 'method' in the constructor to access 'y'. Just put 'this.y = 10;' in the constructor. Your example isn't legal JavaScript.
page 1