Skip to content

EgorAlmikeev/js-classes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

js-classes

Kodaktor

src.js

<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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published