class boject initails in another clas in java script code example Example: how to create class in javascript class ClassName { }