use the property of the class function inside the class code example Example: variables in js class constructor(){ this.foo = bar }