Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var clas3s = new test();
- console.log(clas3s.name) // работает
- clas3s.open() // не работает
- function test() {
- this.name = 'Test';
- }
- test.prototype.open = function() {
- console.log(this.name)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement