js class how to set a variable for class methods code example Example: variables in js class constructor(){ this.foo = bar }