Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

run function then empty it javascript

function myFunction() {
  let value = 1 // change to random value
  if(document.getElementById("myId").innerHTML = value) {
    // do something
    
 myFunction == function(){}; // emptying my function after it is run once 
}}
 
PREVIOUS NEXT
Tagged: #run #function #empty #javascript
ADD COMMENT
Topic
Name
6+9 =