<html>
<script src="/j/out"></script>
<script>{
class Father {
constructor(name = 'Dart') { this.name = name.toUpperCase(); }
get myName() { return this.name; }
}
class Son extends Father {
constructor(name2 = 'Luke') { super(); this.name2 = name2; }
get myName() { return this.name2 + " " + super.myName + "'s son"; }
}
const son1 = new Son();
Out.log(son1.myName);
}</script>
</html>-
Notifications
You must be signed in to change notification settings - Fork 0
EgorAlmikeev/js-classes
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published