How to remove setTimeout from code

Currently I have setTimeout placed on here,

Which activates after the curtains close.

The curtains close after clicking the exit button,

Which appears on the screen after the curtains have opened.

  function removePlayer(player) {
    setTimeout(function() {
    }, 8000);

How would I be able to remove setTimeout from the code?

just clear the interval in js clearInterval(“you’r function name which you want to stop or remove”)

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.