how to make a class into an object in js code example Example: variables in js class constructor(){ this.foo = bar }