@nda1/

practice problem

Nodejs

No description

fork
loading
Files
  • index.js

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.6531198733800501","path":"index.js","file":{"path":"index.js","content":{"asEncoding":{"base64":"ZnVuY3Rpb24gQ2xhc3NPbmUobmFtZSwgcHcsIG1haWwpewogIC8vIEV4ZXJjaXNlIE9uZTogSW4gdGhpcyBleGVyY2lzZSB5b3Ugd2lsbCBiZSBjcmVhdGluZyB5b3VyIG93biBjbGFzcyEKICAvLyBZb3UgYXJlIGN1cnJlbnRseSBpbiB0aGUgY2xhc3MsIHlvdSBhcmUgZ2l2ZW4gdGhyZWUgc3RyaW5ncywgbmFtZSwgcHcsIGFuZCBtYWlsLgogIC8vIFlvdSBuZWVkIHRvIGNyZWF0ZSB0aHJlZSBwcm9wZXJ0aWVzIG9uIHRoaXMgY2xhc3MuCiAgLy8gVGhvc2UgcHJvcGVydGllcyBhcmU6ICd1c2VybmFtZScsICdwYXNzd29yZCcsIGFuZCAnZW1haWwnCiAgLy8gU2V0IHRoZSB2YWx1ZSBvZiB1c2VybmFtZSB0byBuYW1lLAogIC8vIFNldCB0aGUgdmFsdWUgb2YgcGFzc3dvcmQgdG8gcHcsCiAgLy8gU2V0IHRoZSB2YWx1ZSBvZiBlbWFpbCB0byBtYWlsCiAKICAvL2Z1bmN0aW9uIENsYXNzT25lKHVzZXJuYW1lLCBwYXNzd29yZCwgZW1haWwpIHsKICAgIC8vdGhpcy51c2VybmFtZSA9IG5hbWU7ICAgICAgICAgICAgICAgICAKICAgIC8vdGhpcy5wYXNzd29yZCA9IHB3OyAgICAgICAgICAgICAgICAgICAKICAgIC8vdGhpcy5lbWFpbCA9IG1haWw7ICAgICAgICAgICAgICAgICAgICAKICAvL30KICAvLyBOb3RlOiBSZW1lbWJlciB5b3UgRE8gTk9UIG5lZWQgdG8gcmV0dXJuIGFueXRoaW5nIGluIGEgY2xhc3MhCn0KZnVuY3Rpb24gQ2xhc3NUd28obmFtZSwgcHcsIG1haWwpewogIC8vIEV4ZXJjaXNlIFR3bzogTm93IHRoYXQgeW91IGhhdmUgY3JlYXRlZCB5b3VyIG93biBjbGFzcywgCiAgLy8geW91IHdpbGwgY3JlYXRlIGEgY2xhc3Mgd2l0aCBhIG1ldGhvZCBvbiBpdC4KICAvLyBJbiB0aGlzIGNsYXNzIGNyZWF0ZSA0IHByb3BlcnRpZXM6IHVzZXJuYW1lLCBwYXNzd29yZCwgZW1haWwsIGFuZCBjaGVja1Bhc3N3b3JkLgogIC8vIFNldCB0aGUgdmFsdWUgb2YgdXNlcm5hbWUgdG8gbmFtZSwKICAvLyBTZXQgdGhlIHZhbHVlIG9mIHBhc3N3b3JkIHRvIHB3LAogIC8vIFNldCB0aGUgdmFsdWUgb2YgZW1haWwgdG8gbWFpbAogIC8vIFNldCB0aGUgdmFsdWUgb2YgY2hlY2tQYXNzd29yZCB0byBhIGZ1bmN0aW9uLiAKICAvLyBUaGUgY2hlY2tQYXNzd29yZCBmdW5jdGlvbiB0YWtlcyBhIHN0cmluZyBhcyBpdCdzIG9ubHkgYXJndW1lbnQuCiAgLy8gVXNpbmcgdGhlICd0aGlzJyBrZXl3b3JkIGNoZWNrIHRvIHNlZSBpZiB0aGUgcGFzc3dvcmQgb24gdGhlIGNsYXNzIGlzIHRoZSBzYW1lIGFzIAogIC8vIHRoZSBzdHJpbmcgYmVpbmcgcGFzc2VkIGluIGFzIHRoZSBwYXJhbWV0ZXIuIFJldHVybiB0cnVlIG9yIGZhbHNlLgp9IAoKQ2xhc3NPbmVbbmFtZV07"},"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
27
28
29
30
function ClassOne(name, pw, mail){
  // Exercise One: In this exercise you will be creating your own class!
  // You are currently in the class, you are given three strings, name, pw, and mail.
  // You need to create three properties on this class.
  // Those properties are: 'username', 'password', and 'email'
  // Set the value of username to name,
  // Set the value of password to pw,
  // Set the value of email to mail
 
  //function ClassOne(username, password, email) {
    //this.username = name;                 
    //this.password = pw;                   
    //this.email = mail;                    
  //}
  // Note: Remember you DO NOT need to return anything in a class!
}
function ClassTwo(name, pw, mail){
  // Exercise Two: Now that you have created your own class, 
  // you will create a class with a method on it.
  // In this class create 4 properties: username, password, email, and checkPassword.
  // Set the value of username to name,
  // Set the value of password to pw,
  // Set the value of email to mail
  // Set the value of checkPassword to a function. 
  // The checkPassword function takes a string as it's only argument.
  // Using the 'this' keyword check to see if the password on the class is the same as 
  // the string being passed in as the parameter. Return true or false.
} 

ClassOne[name];
node v10.16.0