title: Why is setInterval() not working in my ES6 code?
body: <p>I have a class named main with a method called <code>setDate()</code>. In the constructor method I put the line: <code>setInterval(main.setDate(), 10000)</code> and it only runs the initial time the object is instatiated. If I put the line as a tail call in the <code>setDate()</code> method, it runs infinitely &amp; breaks the browser session.</p>