get value of a class and declare in a function code example Example: variables in js class constructor(){ this.foo = bar }