can you declare a variable in a class javascript code example Example: variables in js class constructor(){ this.foo = bar }