Haha, kids are what gives your life purpose. Next time you blink you'll be over the hill and having a great time with your grandchildren! I wasted my youth, don't waste yours. If I could go back to 23!!! :)
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.
Haha, kids are what gives your life purpose. Next time you blink you'll be over the hill and having a great time with your grandchildren! I wasted my youth, don't waste yours. If I could go back to 23!!! :)
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.