An example of using private and public method

Some results that can be figured out: we can create public and private
method inside javascript as the pattern. I have not figured out how to
create a public static method inside the javascript class.