js can you write logic in class code example Example: variables in js class constructor(){ this.foo = bar }