Skip to content

Instantly share code, notes, and snippets.

@easierbycode
Created April 29, 2016 18:28
Show Gist options
  • Save easierbycode/e7d1ce75bdd9a85fd6bd68b9e623184a to your computer and use it in GitHub Desktop.
Save easierbycode/e7d1ce75bdd9a85fd6bd68b9e623184a to your computer and use it in GitHub Desktop.
class Project {
constructor() {
this.location = 'Mazatlan';
}
}
class SoftwareProject extends Project {
constructor() {
super();
this.location = this.location + ' beach';
}
}
let sp = new SoftwareProject;
sp.location;
// "Mazatlan beach"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment