Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to clear a function in javascript

      const setObj = new Set();
      setObj.add('Java');
      setObj.add('JavaFX');
      setObj.add('JavaScript');
      setObj.add('HBase');
      setObj.clear();
      document.write("Contents of the Set:");
      for (let item of setObj) {
         document.write(item);
         document.write("<br>");
      }
      // clear it
      setObj.clear()
 
PREVIOUS NEXT
Tagged: #clear #function #javascript
ADD COMMENT
Topic
Name
9+5 =