How to define a class in Javascript
I want to create a class in Javascript. 
This class should have 

1. private and public variables and functions.
2. static and dynamic variables and functions.

How this can be done ?
How to define a class in Javascript
===

I want to create a class in Javascript. 
This class should have 

1. private and public variables and functions.
2. static and dynamic variables and functions.

How this can be done ?