typescript timeout variable code example Example: timeout typescript setTimeout(() => { console.log('hi'); }, 500);