It\'s there a way to configure the setInterval method of javascript to execute the method immediately and then executes with the timer
setInterval
I'm not sure if I'm understanding you correctly, but you could easily do something like this:
setInterval(function hello() { console.log('world'); return hello; }(), 5000);
There's obviously any number of ways of doing this, but that's the most concise way I can think of.