js classes with variables code example Example: variables in js class constructor(){ this.foo = bar }