set interval bind this in function code example Example: js this binding setinterval setInterval( this.tick.bind(this), 1000 );