when to use class::function syntax code example Example: variables in js class constructor(){ this.foo = bar }