js this binding setinterval
snippet in javascript

js this binding setinterval

user1446

setInterval( this.tick.bind(this), 1000 );