Created
August 8, 2022 03:43
-
-
Save szaranger/b3c46764dc30b12308926241cf89f9cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fucntion Person(name, dob) { | |
this.name = name; | |
this.dob = dob; | |
} | |
const sherlock = new Person({ | |
name: 'Sherlock Holmes', | |
dob: '01-06-1852'; | |
}); | |
let john = new Person({ | |
name: 'Dr John Dollar', | |
dob: '01-08-1866' | |
}); | |
const dick = new Person({ | |
name: 'Dick Donovan', | |
dob: '01-01-1875' | |
}); | |
// set john to undefined | |
john = undefined; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment