what is the purpose of timeout typescript code example Example: timeout typescript setTimeout(() => { console.log('hi'); }, 500);