Note that the function takes time in millisecond – and hence we have specified ‘3000’ as the timeout value. In the block, you can either write a few lines of code directly or you can call some other function. For example you could call a second function that creates a pop-up with some message.