how to create a class for predefined functions code example Example: variables in js class constructor(){ this.foo = bar }