javascript add timeout code example Example: js settimeout setTimeout(() => { alert('Hello') }, 1000)