0

I want the function "timedText" to repeat itself, how is that possible?
So here is my code that I want to go around for ever, how do I fix that?

function timedText() {

  setTimeout(myTimeout1, 0)

  setTimeout(myTimeout2, 500)

  setTimeout(myTimeout3, 1000)

  setTimeout(myTimeout4, 1500)

}
Arulkumar
  • 12,966
  • 14
  • 47
  • 68

1 Answers1

1

setTimeout will only be called once . You should use setInterval for infinite repetitions .

setInterval(myTimeout , 500)
KpTheConstructor
  • 3,153
  • 1
  • 14
  • 22