Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Test() {
- this.name = 'Test'
- }
- Test.prototype = {
- open: function(){
- console.log(this.name);
- }
- }
- const testClass = new Test();
- testClass.open();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement