Skip to content

RomanKosobrodov/classes-in-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Classes in Javascript

A trivial example of defining classes in Javascript (ECMAScript 2015).

Running the example

Clone the repository navigate to the directory with the code and run a web server in it. For example:

php -S localhost:4567

Open the URL in the browser and open the developer console. You should see an output similar to this:

shape - 0
circle - 0
rect
square
0
12.566370614
2
4

About

A simple example of classes in Javascript (ECMAScript 2015)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published