Call method form setInterval() causing exception

I would like to call function from setInterval(). Here is the idea: class Greeter { element: HTMLElement; span: HTMLElement; timerToken: number; constructor(element: HTMLElement) ...