Skip to content

Instantly share code, notes, and snippets.

@szaranger
Created August 8, 2022 03:43
Show Gist options
  • Save szaranger/b3c46764dc30b12308926241cf89f9cd to your computer and use it in GitHub Desktop.
Save szaranger/b3c46764dc30b12308926241cf89f9cd to your computer and use it in GitHub Desktop.
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