Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

empty function after it is run 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: #empty #function #run #javascript
ADD COMMENT
Topic
Name
1+8 =