// the function to be called function greeting(){ console.log('hello world!') }; // timer for function setInterval(greeting, 3000)