title: setInterval - How to fire only once?
body: <p>Hello I have this snippet of code that will fire some even after time that I choose.</p>
  
  <p>The problem is that if, for example I put 3 seconds it will fire every 3 seconds, what I need is it to fire only once after 3 seconds.</p>
  
  <pre><code>function playSound(timeLeft){
     var sendDataTimeout = function(){
        alert('OK');
     }
     var intervalReference = 0;
     clearInterval(intervalReference);
     intervalReference = setInterval(sendDataTimeout, timeLeft);
  }
  </code></pre>