Skip to content

Instantly share code, notes, and snippets.

@Hurly77
Created May 14, 2021 04:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hurly77/f8886dd07f0c7265a87c56f6ba9d7170 to your computer and use it in GitHub Desktop.
Save Hurly77/f8886dd07f0c7265a87c56f6ba9d7170 to your computer and use it in GitHub Desktop.
class Bird {
fly(){
//..
}
}
class Eagle extends Bird {
dive(){
//..
}
}
const eagle = new Eagle();
eagle.fly();
eagle.dive();
class Penguin extends Bird(){
//Problem: Can't fly!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment