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