Pergunta de entrevista da empresa Digg

What's the difference between js setInterval() and setTimeout()

Resposta da entrevista

Sigiloso

5 de fev. de 2016

'setTimeout' executes the function once on a time out. 'setInterval' executes the function repeatedly on and interval.