// The essential Human blueprint
class Human {
constructor() {
this.species = "Homo Sapiens";
this.skills = ["breathing", "eating", "sleeping"]; // __ _
} // | / \ | _\(_)/_
} // \_\\ //______/ /(o)\
// .'/()\'.____/`- /' \
// A Developer is just a Human with extra features // idoy \\`.//\ _ /` \ \\ ,, / /
class Developer extends Human { // _\(o)/_ / /`.,' `.,' '-.`\()/`.-'
constructor() { // /(_)\ /__/__/ DevLife--_'(_ )'_--.
super(); // . _.._ \ // /` /`""`\ `\ \
this.name = "nazDridoy"; // ' '.'`._,' | | >< | |
this.mood = "π"; // / __ \/___\,'\ /\ / /
this.skills.push("coding", "googling"); // , | >< |__,__\,-' '.__.' ridoy
this.skills.push("ctrl+c", "ctrl+v"); // . \ \ / / . \ _\(o)/_
} // \_'--`( )'--'_/ _ /(_)\
greet() { // .--'/()\'--. _\( )/_
return `Hi ! I'm ${this.name}...${this.mood}`; // / /` d' `\ \ /(O)\
} // _ @naz ridoy @naz
} // _\(_)/_ \ /
// /(O)\
// Say hello! //
console.log(new Developer().greet());
// Output: Hi ! I'm nazDridoy...π
Highlights
- Pro
Pinned Loading
-
computer-science
computer-science PublicForked from ossu/computer-science
π Path to a free self-taught education in Computer Science!
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.