loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.056465239822665714","path":"index.js","file":{"path":"index.js","content":{"asEncoding":{"base64":"DQpmdW5jdGlvbiBVc2VyKG5hbWUsYWdlKSB7DQogICB0aGlzLm5hbWUgPSBuYW1lOw0KICAgdGhpcy5hZ2UgPSBhZ2U7DQp9DQoNClVzZXIucHJvdG90eXBlLmxvZ2luID0gZnVuY3Rpb24oKSB7DQoNCiAgY29uc29sZS5sb2coJ2xvZ2dpbmcgaW4nKTsNCn0NCg0KDQpsZXQgYWRtaW4gPSBuZXcgVXNlcignYWRtaW4nLDQwKTsNCg0KYWRtaW4uY3JlYXRlUHJvamVjdCA9IGZ1bmN0aW9uKCkgew0KICBjb25zb2xlLmxvZygncHJvamVjdCBpcyBjcmVhdGVkJyk7DQp9DQoNCmNvbnNvbGUubG9nKGFkbWluLmhhc093blByb3BlcnR5KCdsb2dpbicpKTsNCmFkbWluLmxvZ2luKCk7DQoNCmFkbWluLmNyZWF0ZVByb2plY3QoKTsNCg0KbGV0IHByb2plY3RNYW5hZ2VyID0gbmV3IFVzZXIoJ3BtJywzNSk7DQoNCnByb2plY3RNYW5hZ2VyLmxvZ2luKCk7"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function User(name,age) {
   this.name = name;
   this.age = age;
}

User.prototype.login = function() {

  console.log('logging in');
}


let admin = new User('admin',40);

admin.createProject = function() {
  console.log('project is created');
}

console.log(admin.hasOwnProperty('login'));
admin.login();

admin.createProject();

let projectManager = new User('pm',35);

projectManager.login();
node v10.16.0