classClassName{instanceField;staticstaticField;#privateField;static#privateStaticField;constructor(value){this.property=value;this.#privateProperty=value;}getproperty(){returnthis.property;}setproperty(value){this.property=value;}method(parameter){// code with this.* and parameter}staticmethod(parameter){// code withouth this.*}#privateMethod(){// code with this.* and parameter}}
instanceField is a field accessible from all instances of the class
constructor() method which builds the class instance
get and set methods for properties (accessors)
static methods and fields are only accessible from the class itself ClassName.method()