Delay for conditions?

  • 0
    How to make delayed conditions. So that after pressing the button, the condition works, for example, after 3 seconds?
    JavaScript Anonymous, Apr 3, 2019

  • 2 Answers
  • 0
    setTimeout (function (){
    //условие
    },3000)
    Anonymous

  • 0
    setTimeout (() = & gt; alert ('HI!'), 3000);
    Molly Fry

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!