javascript function class method code example Example: how to create class in javascript class ClassName { }